Re:

2013-08-10 Thread Jeremy Ong
Developer for Apache Hadoop On Fri, Aug 9, 2013 at 7:23 PM, Jeremy Ong jer...@quarkgames.com wrote: Hi Riak users, I'm wondering what the best approach to this is. The scenario is that I have mounted a new drive to the machine and want to have the node leverage that drive to save data

[no subject]

2013-08-09 Thread Jeremy Ong
Hi Riak users, I'm wondering what the best approach to this is. The scenario is that I have mounted a new drive to the machine and want to have the node leverage that drive to save data as opposed to the mount point it is currently writing to. My current plan is to start a second instance of

Re: erlang go boom

2013-08-05 Thread Jeremy Ong
On the client you could extract the value_count of the objects you read and just log them. Feel free to post code too, in particular, how you are writing out updated values. On Mon, Aug 5, 2013 at 9:20 PM, Paul Ingalls p...@fanzo.me wrote: Interesting. I have sibling resolution code on the

Re: Unit testing persistence

2013-07-31 Thread Jeremy Ong
Be advised, avoiding mocking/stubbing and making your tests unit tests are mutually exclusive. A unit test by definition should not have any dependencies whatsoever (on other modules even, let alone a database!). On Wed, Jul 31, 2013 at 9:41 PM, Wagner Camarao wag...@crunchbase.com wrote: Hi all

Re: Erlang PB client

2013-07-10 Thread Jeremy Ong
The X there indicates that it does not support connection pooling out of the box in contrast to the check. I'd look at poolboy (to use in conjunction with riakc_pb_socket) and riakpool (which pulls in riak-erlang-client as a dependency). On Wed, Jul 10, 2013 at 3:33 PM, Konstantin Kalin

Re: question about riak siblings

2013-06-20 Thread Jeremy Ong
]. Jordan [1] https://github.com/ricardobcl/Dotted-Version-Vectors On Tue, Jun 18, 2013 at 12:58 PM, Jeremy Ong jer...@quarkgames.comwrote: On Tue, Jun 18, 2013 at 12:57 PM, Jeremy Ong jer...@quarkgames.comwrote: Suppose I have two sources writing to the database, source A and source B

question about riak siblings

2013-06-18 Thread Jeremy Ong
Suppose I have two sources writing to the database, source A and source B. Next, suppose A and B both issue a write to the database so they spawn two siblings: [a1, b1]. Finally, suppose A writes another object using the metadata of the riak object returned when writing a2. This will lead to the

Re: question about riak siblings

2013-06-18 Thread Jeremy Ong
On Tue, Jun 18, 2013 at 12:57 PM, Jeremy Ong jer...@quarkgames.com wrote: Suppose I have two sources writing to the database, source A and source B. Next, suppose A and B both issue a write to the database so they spawn two siblings: [a1, b1]. Finally, suppose A writes another object

First Write Wins

2013-05-19 Thread Jeremy Ong
For automatic conflict resolution, often times, the easiest thing to do is impose a Last Write Wins policy. However, in certain circumstances, First Write Wins makes more sense. For example, suppose you are handling user creation. Creating a single user will populate values for two keys: User Id

Re: First Write Wins

2013-05-19 Thread Jeremy Ong
Evangelist On May 19, 2013, at 7:29 PM, Jeremy Ong jer...@quarkgames.com wrote: For automatic conflict resolution, often times, the easiest thing to do is impose a Last Write Wins policy. However, in certain circumstances, First Write Wins makes more sense. For example, suppose you

Re: On siblings

2013-05-15 Thread Jeremy Ong
. [1]: http://basho.com/riaks-config-behaviors-part-2/ --- Jeremiah Peschka - Founder, Brent Ozar Unlimited MCITP: SQL Server 2008, MVP Cloudera Certified Developer for Apache Hadoop On Tue, May 14, 2013 at 10:48 PM, Jeremy Ong jer...@quarkgames.com wrote: To clarify, I am using

On siblings

2013-05-14 Thread Jeremy Ong
Suppose I have an object X. I make an update to X and store it as X1. I perform a put operation using X1. The same client then makes a modification to X1 and stores it as X2. Then, I perform a put operation using X2. This will create two siblings X1 and X2 if allow_mult is true. Is there any

Re: On siblings

2013-05-14 Thread Jeremy Ong
). In this case however, I already have the value in memory, so it seems inefficient to have to get the entire riakc_obj back when I really just need the metadata to construct the new object. Is this correct? On Tue, May 14, 2013 at 9:06 PM, Jeremy Ong jer...@quarkgames.com wrote: Suppose I have an object

Re: ripple and presence property

2012-10-08 Thread Jeremy Ong
From an implementation standpoint, see https://github.com/basho/ripple/blob/master/lib/ripple/validations/associated_validator.rb which does the passthrough to: http://guides.rubyonrails.org/active_record_validations_callbacks.html#presence I believe On Mon, Oct 8, 2012 at 11:13 AM, Sean

Re: 2i with the riakc client

2012-07-24 Thread Jeremy Ong
) but I'm throwing it out there in case somebody else struggles with the same issues. Cheers, Jeremy On Sun, Jul 22, 2012 at 2:05 PM, Jeremy Ong jer...@playmesh.com wrote: Ah perfect that works thanks. I saw the github issue asking for documentation on this. I feel woefully unqualified to write

Re: Riak 1.2 RC1 Release

2012-07-13 Thread Jeremy Ong
Hi, looks awesome, which Erlang release is the recommended one for building this? jeremy On Fri, Jul 13, 2012 at 5:31 PM, Gordon Tillman gtill...@mezeo.com wrote: Jared this is great news. There are some supremely-useful additions and enhancements in this release! --gordon On Jul 13,