Counters and secondary index

Russell Brown russell.brown at
Wed Nov 4 09:48:03 EST 2015

On 27 Oct 2015, at 13:02, Łukasz Biedrycki <lukasz.biedrycki at> wrote:

> Hey,
> I need a secondary index with my counter, but I found an information that ​"​Counters have no support for Secondary Indexes (2i), Links or Custom HTTP Metadata​" (
> ​What if I treat a counter as an object, and use riakc_pb_socket:get/3 and riakc_pb_socket:put/2 to set a secondary index? Example:
> What are the implications of a hack like that?
> Will i get away with that?

I’ll have to check. I have thought about this myself in the past.

> Kind Regards,
> Lukasz Biedrycki
> _______________________________________________
> riak-users mailing list
> riak-users at

More information about the riak-users mailing list