Re: Bucket planning

2010-04-19 Thread Brandon Smith
I think I understand your suggestion regarding an additional index in other buckets. To use your "keys per time slice" example, if I wanted to get all of last month's phone call records, I will have already built up a bucket-key pair that contains a list of keys... GET /riak/callreport/2010_03 [

Re: Bucket planning

2010-04-19 Thread Alexander Sicular
I would go with A. An advantage of your data is that it is immutable. Since it never changes you can do extensive m/r pre computations and have them run continuously on some frequency. I would also probably spend some time thinking about the new pre/post hook features to potentially build s

Bucket planning and query paging

2010-04-19 Thread Brandon Smith
I am looking to use Riak as a data store for events in our system. Namely, I have a handful of event types now and anticipate much more later. Consider the following "event": { "type" : "bws.stats", "host" : "10.1.55.101", "description" : "human friendly description", "details" : "str

Bucket planning

2010-04-19 Thread Brandon Smith
I am looking to use Riak as a data store for events in our system. Namely, I have a handful of event types now and anticipate much more later. Consider the following "event": { "type" : "bws.stats", "host" : "10.1.55.101", "description" : "human friendly description", "details" : "string

Re: Using protobuf client in Java

2010-04-19 Thread Matthew Pflueger
Thanks Jon! That was exactly my problem... Quick note on your example, msgLen should be msgLen-1 because you already read the msgCode byte which is included in the msgLen... --Matthew On Mon, Apr 19, 2010 at 17:46, Jon Meredith wrote: > Hi Matthew, > > When you read the serverInfoResp you n

Re: Using protobuf client in Java

2010-04-19 Thread Jon Meredith
Hi Matthew, When you read the serverInfoResp you need to read the header to find the length of the response message. The header is 5-bytes - 4-bytes of length and 1-byte of message code. You should just use the parseFrom calls - not the parseFromDelimited ones. Please excuse my java - I have

Using protobuf client in Java

2010-04-19 Thread Matthew Pflueger
Hi, I’m having issues using the protobuf stuff. Writing/reading bytes directly to/from the socket works but using the protoc generated Java message builders either gives me nothing useful back or throws invalid protocol exceptions. I’ve never used the protobuf stuff before so maybe I’m doing som

Riak 0.10rc1 now available for download

2010-04-19 Thread Mark Phillips
Hey All - We just tagged Riak 0.10rc1, which is the first release candidate for the 0.10 official release that should be out later this week. If you're feeling daring, we would encourage you to try it out. Be sure to let us know if any bugs pop up. You can get the tarball here: http://downloads

Re: sidebar :: quick webmachine question

2010-04-19 Thread Justin Sheehy
Hi, Richard. On Mon, Apr 19, 2010 at 12:08 PM, Richard Bucker wrote: > I read an article(from someone at basho) that said that WebMachine was going > to be more public or something like that. In the meantime it has been forked > several times and yet projects like riak integrate it. Other branch

sidebar :: quick webmachine question

2010-04-19 Thread Richard Bucker
I read an article(from someone at basho) that said that WebMachine was going to be more public or something like that. In the meantime it has been forked several times and yet projects like riak integrate it. Other branches are many months old. So would the real webmachine please stand up. * * */r