Created on 2020-12-08.09:49:44 by ced, last changed 1 month ago by roundup-bot.
New changeset 5f8781d9eb7d by Nicolas Évrard in branch 'default': Call Function.get by bunch of cache size https://hg.tryton.org/tryton-env/rev/5f8781d9eb7d
New changeset 0afa2a5de45a by Nicolas Évrard in branch 'default': Call Function.get by bunch of cache size https://hg.tryton.org/trytond/rev/0afa2a5de45a
For me we will get a better benefit to slice the ids in ModelSQL.read when calling the getter's. This is because for each getter we will have the sub-list of records in the cache instead of having an empty cache each time we call a getter.
Here's a review
As the Function field is instantiating the
ids received and that most of them will access common (or loaded together) attributes from these instances, it is better to use a list of the size of the cache so different call will reuse the same cache. Otherwise on larger list, the cache will be dropped between successive calls.
|2021-02-23 18:50:42||roundup-bot||set||messages: + msg64799|
nosy: + roundup-bot
status: chatting -> resolved
|2021-02-18 12:40:47||reviewbot||set||messages: + msg64687|
|2021-02-15 16:04:46||reviewbot||set||messages: + msg64610|
|2021-02-15 10:28:38||reviewbot||set||messages: + msg64596|
|2021-02-14 19:46:41||reviewbot||set||messages: + msg64591|
|2021-02-05 16:59:40||reviewbot||set||messages: + msg64345|
|2021-01-25 16:23:30||reviewbot||set||messages: + msg64084|
|2021-01-22 17:54:18||reviewbot||set||messages: + msg64051|
|2020-12-14 19:19:23||reviewbot||set||messages: + msg63090|
Showing 10 items. Show all history (warning: this could be VERY long)