Counters and secondary index

Dmitri Zagidulin dzagidulin at basho.com
Wed Nov 4 09:53:55 EST 2015


Would Search be an option for you, instead?

You can use search to "tag" custom headers on a counter, like you would a
secondary index, I think.

On Tuesday, October 27, 2015, Łukasz Biedrycki <lukasz.biedrycki at gmail.com>
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
> ​" (http://docs.basho.com/riak/latest/dev/references/http/counters/).
>
> ​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:
> https://gist.github.com/loucash/8ffe463833052ca779b1
>
> 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: <http://lists.basho.com/pipermail/riak-users_lists.basho.com/attachments/20151104/4fac7af8/attachment-0002.html>


More information about the riak-users mailing list