Counters and secondary index

Łukasz Biedrycki lukasz.biedrycki at
Tue Oct 27 09:02:45 EDT 2015


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
​" (

​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?

Kind Regards,
Lukasz Biedrycki
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the riak-users mailing list