Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(26)

Issue 7407052: store: sum counter prefixes without perfect match

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years, 2 months ago by niemeyer
Modified:
11 years, 2 months ago
Reviewers:
mp+150934, dave
Visibility:
Public.

Description

store: sum counter prefixes without perfect match This means a:b:* won't include the count for a:b itself. This is the most desired outcome in practice, and matches with the output of listing a:b:* (the aggregated sum without ?list=1 now matches the sum of all counts in a listing with ?list=1). https://code.launchpad.net/~niemeyer/juju-core/store-counter-sum-tunning/+merge/150934 (do not edit description out of merge proposal)

Patch Set 1 #

Total comments: 2

Patch Set 2 : store: sum counter prefixes without perfect match #

Unified diffs Side-by-side diffs Delta from patch set Stats (+15 lines, -12 lines) Patch
A [revision details] View 1 1 chunk +2 lines, -0 lines 0 comments Download
M store/server_test.go View 1 2 chunks +6 lines, -4 lines 0 comments Download
M store/store.go View 3 chunks +5 lines, -6 lines 0 comments Download
M store/store_test.go View 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 4
niemeyer
Please take a look.
11 years, 2 months ago (2013-02-27 22:47:17 UTC) #1
dave_cheney.net
LGTM. I'll leave you and thumper to argue about the boolean flag; it was there ...
11 years, 2 months ago (2013-02-27 23:06:14 UTC) #2
niemeyer
Thanks for the review. https://codereview.appspot.com/7407052/diff/1/store/server_test.go File store/server_test.go (right): https://codereview.appspot.com/7407052/diff/1/store/server_test.go#newcode177 store/server_test.go:177: "a": "1", On 2013/02/27 23:06:14, ...
11 years, 2 months ago (2013-02-27 23:09:20 UTC) #3
niemeyer
11 years, 2 months ago (2013-02-27 23:16:08 UTC) #4
*** Submitted:

store: sum counter prefixes without perfect match

This means a:b:* won't include the count for a:b itself. This is
the most desired outcome in practice, and matches with the output
of listing a:b:* (the aggregated sum without ?list=1 now matches
the sum of all counts in a listing with ?list=1).

R=dfc
CC=
https://codereview.appspot.com/7407052
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b