diff options
| author | Géry Debongnie <ged@odoo.com> | 2018-11-15 11:11:34 +0000 |
|---|---|---|
| committer | Géry Debongnie <ged@odoo.com> | 2018-11-15 15:24:27 +0000 |
| commit | 92b4e2e866363ecb1b62c2448d40a5fcfc481348 (patch) | |
| tree | d98fb432a0adb718dbdd1a3bbb92b0be5bc4b35d /setup.py | |
| parent | 662657f44bf494e6b7eb4248e025ef76c788bf9c (diff) | |
[FIX] web: fix performance issue with read_progress_bar
The read_progress_bar method is incredibly not efficient. It is also
wrong in other ways (for example, if 2 groups have same labels, there is
a collision). But let us talk about efficiency: it iterates on each
records on the domain, then, it computes some information. It is really
worse for selection fields: it performs a fields_get for each iteration.
This commit improves the situation by doing the fields_get only once.
Note that this is not the end of the story: this only has a small effect on
the performance of this method. It looks like there is a deeper issue in
some cases (kanban view for subscription, field 'activity_state')
Diffstat (limited to 'setup.py')
0 files changed, 0 insertions, 0 deletions
