Re: Testing On A Single Node

2016-02-25 Thread Vitaly E
Hi Joe, A standalone node should behave similarly to a clustered node in terms of data persistence. Actually, I use single-node Riak setups (inside a VM) a lot for testing. The only differences are ring_size=8 and n_val=1, for performance reasons. So, it must be your Riak or VM configuration. Als

Testing On A Single Node

2016-02-25 Thread Joe Olson
I am trying to set up a simple test environment. This environment consists of a single Riak KV node which has not joined a cluster. I can populate the single un-clustered node with KV pairs just fine using curl. However, when I stop the node, and then restart it, all the KV pairs that were wr

Re: Java Client - Maps - fetch only one entry

2016-02-25 Thread Vitaly E
I would advise against search for many reasons. IMO writing two copies of a value - one in a map (when the entire map is required) and the other in a separate key (for most cases) will work much better. You can also store the values of a map in separate keys for retrieval/updates, and also have a

Re: Java Client - Maps - fetch only one entry

2016-02-25 Thread Cosmin Marginean
Yes, we ended up doing that in the end. Was just a usecase where _sometimes_ the map was required as a whole, while _other times_ only a specific entry. I believe search would help with some of this, but we are still looking into that. Thanks everyone for your help Cheers Cos > On 25 Feb 2016,

Re: Java Client - Maps - fetch only one entry

2016-02-25 Thread Vitaly E
Hi Cosmin, Sorry for the dumb question, but if you are interested in a specific entry why not to store it as a separate key? It would be easier for updates, too. Regards, Vitaly On Thu, Feb 25, 2016 at 9:40 PM, Cosmin Marginean wrote: > On 25 Feb 2016, at 19:26, Cosmin Marginean wrote: > > Hi

Re: Java Client - Maps - fetch only one entry

2016-02-25 Thread Cosmin Marginean
Thanks Russell, that’s good to know As for search - we haven’t investigated that avenue as we’re not using the search capabilities yet, but it might be in the future. Cheers Cos > On 25 Feb 2016, at 19:47, Russell Brown wrote: > > Not yet. I think that would be cool too. > > Right now, a map

Re: Java Client - Maps - fetch only one entry

2016-02-25 Thread Russell Brown
Not yet. I think that would be cool too. Right now, a map is just a riak object. I guess with Riak Search indexing though, you could get something similar, maybe? On 25 Feb 2016, at 19:40, Cosmin Marginean wrote: > On 25 Feb 2016, at 19:26, Cosmin Marginean wrote: > > Hi, > > I couldn’t fi

Java Client - Maps - fetch only one entry

2016-02-25 Thread Cosmin Marginean
On 25 Feb 2016, at 19:26, Cosmin Marginean wrote: Hi, I couldn’t find this anywhere in the docs: is there a mechanism in Riak to fetch only one Register (or a specific entry) from a map? We have a use case where we have a map and need to only get the value for a key in the map, rather than the