Re: Forcing Siblings to Occur

2013-11-13 Thread Jeremiah Peschka
don't see size >> being an issue. I have also considered using a counter to know how large an >> object is without fetching it, which shouldn't be off by more than a few >> siblings unless there is a network partition. >> >>> >> >>> So asi

Re: Forcing Siblings to Occur

2013-11-13 Thread Olav Frengstad
ich shouldn't be off by more than a few > siblings unless there is a network partition. > >>> > >>> So aside from size issues, which can be roughly predicted or worked > around, is there any reason to not create hundreds or thousands of siblings > and resolve t

Re: Forcing Siblings to Occur

2013-11-13 Thread Hector Castro
>> resolve them later? I realise sets could work well for my use case, but >>> they seem overkill for simple append operations when I don't need delete >>> functionality. Creating your own CRDTs are trivial if you never need to >>> delete. >>> >>

Re: Forcing Siblings to Occur

2013-11-13 Thread Russell Brown
case, but they >> seem overkill for simple append operations when I don't need delete >> functionality. Creating your own CRDTs are trivial if you never need to >> delete. >> >> Thoughts are welcome, >> Jason >> From: John Daily >> Sent: Wedn

Re: Forcing Siblings to Occur

2013-11-13 Thread Carlos Baquero
ality. Creating your own CRDTs are trivial if you never need to > delete. > > Thoughts are welcome, > Jason > From: John Daily > Sent: Wednesday, 13 November 2013 3:10 AM > To: Olav Frengstad > Cc: riak-users > Subject: Re: Forcing Siblings to Occur > > Forcing sibl

Re: Forcing Siblings to Occur

2013-11-13 Thread Sam Elliott
ted or worked > > > > around, is there any reason to not create hundreds or thousands of > > > > siblings and resolve them later? I realise sets could work well for my > > > > use case, but they seem overkill for simple append operations when I > > >

Re: Forcing Siblings to Occur

2013-11-12 Thread Olav Frengstad
append operations when I don't need delete >> functionality. Creating your own CRDTs are trivial if you never need to >> delete. >> >> Thoughts are welcome, >> Jason >>*From: *John Daily >> *Sent: *Wednesday, 13 November 2013 3:10 AM >> *To: *Olav

Re: Forcing Siblings to Occur

2013-11-12 Thread Olav Frengstad
't need delete > functionality. Creating your own CRDTs are trivial if you never need to > delete. > > Thoughts are welcome, > Jason > *From: *John Daily > *Sent: *Wednesday, 13 November 2013 3:10 AM > *To: *Olav Frengstad > *Cc: *riak-users > *Subject: *Re: Forci

Re: Forcing Siblings to Occur

2013-11-12 Thread John Daily
r my use case, but they > seem overkill for simple append operations when I don't need delete > functionality. Creating your own CRDTs are trivial if you never need to > delete. > > Thoughts are welcome, > Jason > From: John Daily > Sent: Wednesday, 13 November 2013

Re: Forcing Siblings to Occur

2013-11-12 Thread Jason Campbell
I am currently forcing siblings for time series data. The maximum bucket sizes are very predictable due to the nature of the data. I originally used the get/update/set cycle, but as I approach the end of the interval, reading and writing 1MB+ objects at a high frequency kills network bandwidth. So

Re: Forcing Siblings to Occur

2013-11-12 Thread John Daily
Forcing siblings other than for testing purposes is not typically a good idea; as you indicate, the object size can easily become a problem as all siblings will live inside the same Riak value. Your counter-example sounds a lot like a use case for server-side CRDTs; data structures that allow t

Re: Forcing Siblings to Occur

2013-11-12 Thread Olav Frengstad
Do you consider forcing siblings a good idea? I would like to get some input on possible use cases and pitfalls. For instance i have considered to force siblings and then merge them on read instead of fetching an object every time i want to update it (especially with larger objects). It's not clea

Re: Forcing Siblings to Occur

2013-11-08 Thread Brian Roach
On Fri, Nov 8, 2013 at 11:38 AM, Russell Brown wrote: > If you’re using a well behaved client like the Riak-Java-Client, or any other > that gets a vclock before doing a put, use whatever option stops that. for (int i = 0; i < numReplicasWanted; i++) { bucket.store("key", "value").withoutFe

Re: Forcing Siblings to Occur

2013-11-08 Thread Russell Brown
Hi Mark, It is pretty easy. Set your bucket to allow_mult=true. Send a put to bucket, key. Send another one to the same bucket key. If you’re using a well behaved client like the Riak-Java-Client, or any other that gets a vclock before doing a put, use whatever option stops that. With the pb c

Re: Forcing Siblings to Occur

2013-11-08 Thread John Daily
Updating any key without supplying a vector clock is guaranteed to create a sibling. -John On Nov 8, 2013, at 1:29 PM, Mark A. Basil, Jr. wrote: > Is there some method that is either guaranteed or very highly likely to > create Siblings of an object (that isn’t a counter)? I would like to ha

Forcing Siblings to Occur

2013-11-08 Thread Mark A. Basil, Jr.
Is there some method that is either guaranteed or very highly likely to create Siblings of an object (that isn't a counter)? I would like to have a reliable method to test code which is meant to handle them. ___ riak-users mailing list riak-users@lists.