<    March 2017    >
Su Mo Tu We Th Fr Sa  
          1  2  3  4  
 5  6  7  8  9 10 11  
12 13 14 15 16 17 18  
19 20 21 22 23 24 25  
26 27 _2_8 29 30 31
00:50 bturker joined
01:35 bturker joined
01:56 jagguli joined
04:02 jmeredith joined
06:08 shaon_ joined
06:11 Siyo_ joined
06:13 Siyo joined
06:45 bturker joined
07:03 neouf joined
08:27 bturker joined
08:56 andyt1 joined
09:48 petro_ joined
10:43 bturker joined
11:02 TheHodge joined
11:06 knav joined
11:07 <knav> hello .. everyone .. I need help with riak datatype modeling
11:08 <knav> I have a user Module, which has a field age of type integer. I am trying to model this as CRDT data type available in Riak 2.2
11:08 <knav> I also intend to query on all users (for example, get me all users whose age is between 20 and 30 years) using Riak Search.
11:09 <knav> Now If I use CRDT datatypes, only way to do a range query on age is to store the age field as Counter datatype, but Counter do not seems to be the right data type (besides we can only increment or decrement counter value).
11:09 <knav> How should I go about modelling this .. or should stop using CRDTs
11:21 andyt1 joined
12:22 petro_ joined
12:25 cemerick joined
13:38 <russelldb> knav: what is the behaviour you want in the case of conflict? If you want LWW you could use a LWW-Register in a map. If you want max(AgeOne, AgeTwo) you could write that yourself, or wait for riak to ship with the fabled range-register Sam Elliot added to riak_dt 3-4 years ago. It all depends on what semantics you're application wants. Maybe in this case
13:38 <russelldb> (age) you really want a Multi-Value register so the _user_ can be presented with the conflict and select the correct value
13:39 <russelldb> I think the richness of data modelling in riak (and with CRDTs especially) needs some work.
13:40 <russelldb> just adding a few more types, and allowing for MVRs in Maps would be a good start
14:13 bturker joined
15:00 al-damiri joined
15:19 bturker joined
15:47 bsparrow joined
16:53 MitchellSalad joined
17:21 Necromantic joined
17:25 Necro|senseless joined
19:07 bturker joined
19:22 cemerick joined
19:55 cemerick joined
20:27 bturker joined
22:12 TheHodge joined
23:36 bturker joined