diff options
| author | Raphael Collet <rco@openerp.com> | 2015-10-12 11:14:25 +0200 |
|---|---|---|
| committer | Raphael Collet <rco@openerp.com> | 2015-10-13 14:49:57 +0200 |
| commit | ac98af1e9f79b9c2e81914a14dd825e2b2c1a500 (patch) | |
| tree | dec906e175e9aff55cddbdea3368e018e6812b16 /addons/web/static/lib/jquery.mjs.nestedSortable | |
| parent | e82deb5ae17d38799f5bb1592fab9323d02b2460 (diff) | |
[IMP] models: recompute fields following a topological order on their dependencies
The goal is to avoid recomputing field several times. Consider, for instance,
two fields F and G, such that G depends on F. Suppose that G is recomputed
before F. Saving G to database proceeds well, but when F is saved to database,
G is invalidated and marked for recomputation. Field G is possibly recomputed
twice on some records.
Avoid this situation by chosing a field such that none of its dependencies must
be recomputed; use a topological sort based on field dependencies for that
purpose. In the example above, G will never be recomputed before F.
Diffstat (limited to 'addons/web/static/lib/jquery.mjs.nestedSortable')
0 files changed, 0 insertions, 0 deletions
