Message 69129

Author
ced
Date
2021-08-04.10:03:25
Message id
69129

Content

issue5399 changed from len(ids) < count / 4 to len(ids) < 2. But it seems there is a flaw in the reasoning because we count "2 write on average ½ all nodes" but new nodes are mainly added at the end of its branch. For example when adding new main records, their update will update only themselves. It is difficult to get a good average of the number of nodes updated.
So I'm wondering if the previous threshold was not better if we add cache to the counting (as we only need an approximation).

History
Date User Action Args
2021-08-04 10:03:26cedsetmessageid: <1628064206.0928977.OHTOAL4Q7F6PVOVR.issue10623@tryton.org>
2021-08-04 10:03:26cedlinkissue10623 messages
2021-08-04 10:03:25cedcreate