Description[Activity log] Make database writes in counting policy more robust
Rework the way that new actions are logged in the counting policy so
that it properly handles the case where there are duplicate records that
weren't properly coalesced. (Duplicate records could arise from
clearing URL history, for example.)
This comes at the cost of additional queries--an update always takes 2
queries, instead 1 or 2 as before. However, benchmarking shows the cost
to be not much different (worst case was ~5% slower, other cases were
indistinguishable or even a bit faster).
BUG=279465
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=221860
Patch Set 1 #Patch Set 2 : Add unit test #
Total comments: 2
Patch Set 3 : Update comments #
Messages
Total messages: 5 (0 generated)
|