Here is a previous discussion about storing time series data in Riak thta might be helpful: http://riak.markmail.org/search/?q=time#query:time+page:1+mid:43du3afmercobvi5+state:results
Thanks, Dan Daniel Reverri Developer Advocate Basho Technologies, Inc. d...@basho.com On Mon, Jun 21, 2010 at 11:57 AM, francisco treacy < francisco.tre...@gmail.com> wrote: > See Riak as a plain k/v store for saving, and later apply map/reduce > for further analysis. > > > userId, partnerId, {products: [{productId: value, productName: value, > > productPrice: value, productUrl: value, productDescription: value}, > > ...]}, orderId, date > > For logging I would just make that a JSON object and save it. > Depending on your query patterns you would want to have a bucket per > partner, or a bucket for time slice. Search the mailing list, there > was a thread describing a similar use-case. > > Francisco > > > 2010/6/21 Norman Khine <nor...@khine.net>: > > hello, i want to log this into a riak datastore but i am unsure how to > > design the buckets: > > > > userId, partnerId, {products: [{productId: value, productName: value, > > productPrice: value, productUrl: value, productDescription: value}, > > ...]}, orderId, date > > > > this basically is a log for when a user access a partner site, we have > > about 35 partners and everytime user goes to the checkout page we want > > to store this data to analyse later. > > > > any advise much appreciated. > > > > norman > > > > > > > > -- > > ˙uʍop ǝpısdn p,uɹnʇ pןɹoʍ ǝɥʇ ǝǝs noʎ 'ʇuǝɯɐן sǝɯıʇ ǝɥʇ puɐ 'ʇuǝʇuoɔ > > ǝq s,ʇǝן ʇǝʎ > > %>>> "".join( [ {'*':'@','^':'.'}.get(c,None) or > > chr(97+(ord(c)-83)%26) for c in ",adym,*)&uzq^zqf" ] ) > > > > _______________________________________________ > > riak-users mailing list > > riak-users@lists.basho.com > > http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com > > > > _______________________________________________ > riak-users mailing list > riak-users@lists.basho.com > http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com >
_______________________________________________ riak-users mailing list riak-users@lists.basho.com http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com