Re: Waiting for riak to handoff ?

2014-08-28 Thread Luke Bakken
For archiving purposes, running the code in the below link resolved
Marcel's issue.

On Mon, Aug 25, 2014 at 9:55 AM, Luke Bakken  wrote:
> Hi Marcel,
>
> I discussed this issue with a colleague and he agrees that running the
> code you found in these release notes should fix this issue:
>
> https://github.com/basho/riak/blob/1.0.2-release/RELEASE-NOTES.org#ownership-handoff-stall
>
> Somehow the final phase of handoff was interrupted and the ring
> changes did not gossip. Let us know if this resolves your issue.
>
> --
> Luke Bakken
> CSE
> lbak...@basho.com

___
riak-users mailing list
riak-users@lists.basho.com
http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com


Custom data-types

2014-08-28 Thread Alex De la rosa
Hi there,

Correct me if I'm wrong, but I think I read somewhere that custom
data-types can be created through schemas or something like that. So, apart
from COUNTERS, SETS and MAPS we could have some custom defined ones.

I would love to have a STACKS data-type that would work like a FIFO stack,
so I could save the last 100 objects for some action. Imagine we are
building Twitter where millions of tweets are sent all the time, but we
want to quickly know the last 100 tweets for a user. Imagine something like:

obj.stacks['last_tweets'].add(id_of_last_tweet)

IN: last_tweet ---> STACK_OF_100_TWEETS ---> OUT: older than the 100th goes
out

Is this possible? If so, how to do it?

Thanks and Best Regards,
Alex
___
riak-users mailing list
riak-users@lists.basho.com
http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com


Riak Secondary Index Limits

2014-08-28 Thread Bryan
Hi Everyone,

Apologies as this has probably been asked before. Unfortunately I have not been 
able to parse through the list serve to find a reasonable answer and the Basho 
wiki docs seem to be missing this information. I have read up on the secondary 
index docs.

I am interested to better understand how the secondary indexes perform when 
there is a very low distribution of values that are indexed. For example, lets 
say I have a bucket with 1 million objects that I create a secondary index on. 
Now lets say the index is on a value that has an uneven distribution where one 
of the values is not selective while the others are, such that 60% of the 
values fall into a single indexed value, while the remaining 40% have a good 
distribution.

For example, I have a record (i.e. object) where the indexed field is 
‘foobar_bin'. I have 1 million objects in the bucket that have 100 unique 
‘foobar’ values distributed over the 1 million objects. One of the values 
repeats for 60% of the records (600K) and the rest have an even distribution of 
about 4%.

How will the secondary indexes perform with this and is this an appropriate use 
of the secondary indexes? Finally, what I have read is not completely clear on 
what happens if the indexed value is updated when the value has such a low 
degree of selectivity?

We have less than 512 partitions and are using the erlang client.

Thanks in advance - any insights will be much appreciated!


Cheers,
Bryan



Bryan Hughes
Go Factory
http://www.go-factory.net___
riak-users mailing list
riak-users@lists.basho.com
http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com