BIND 10 #2179: Update Stats to support partial statistics updates
BIND 10 Development
do-not-reply at isc.org
Tue Aug 28 09:56:06 UTC 2012
#2179: Update Stats to support partial statistics updates
-------------------------------------+-------------------------------------
Reporter: | Owner: naokikambe
naokikambe | Status: reviewing
Type: | Milestone:
enhancement | Sprint-20120904
Priority: | Resolution:
medium | Sensitive: 0
Component: | Sub-Project: DNS
statistics | Estimated Difficulty: 8
Keywords: | Total Hours: 0
Defect Severity: N/A |
Feature Depending on Ticket: |
Add Hours to Ticket: 0 |
Internal?: 0 |
-------------------------------------+-------------------------------------
Comment (by naokikambe):
Replying to [comment:13 jelte]:
> the thing i was worried about for lists is that if you have for instance
> [ 1, 2, 3, 4, 5 ]
> And you only want to update the last three, you cannot do it
> So I guess in practice lists will probably always be sent completely (or
until we have a standardized json-diff representation)
That's right, we cannot do that by using `merge_old_new()` if we update
only the last three values.
For supporting updates of that type, for example, the following
representation can be used:
{{{#!python
{
'foo[2]' : 1,
'foo[3]' : 2,
'foo[4]' : 3
}
}}}
Here, the above array is assumed to be assigned to the variable ''foo'' on
a spec file. It internally does `isc.cc.data.set()` for each element of
the above dictionary instead of doing `stats.merge_oldnew()`.
> Ok on the other points, this can be merged (assuming all its
dependencies are)
Thank you for reviewing! I will merge later.
--
Ticket URL: <http://bind10.isc.org/ticket/2179#comment:14>
BIND 10 Development <http://bind10.isc.org>
BIND 10 Development
More information about the bind10-tickets
mailing list