You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@cassandra.apache.org by Jonathan Ellis <jb...@gmail.com> on 2010/11/16 19:25:49 UTC

Re: avro + cassandra + ruby

On Tue, Sep 28, 2010 at 6:35 PM, Ryan King <ry...@twitter.com> wrote:
> One thing you should try is to make thrift use
> BinaryProtocolAccelerated, rather than the pure-ruby implementation
> (we should change the default).

Dumb question time: how do you do this?

$ find . -name "*.rb" |xargs grep -i binaryprotocol

in the fauna cassandra gem repo turns up no hits.

-- 
Jonathan Ellis
Project Chair, Apache Cassandra
co-founder of Riptano, the source for professional Cassandra support
http://riptano.com

Re: avro + cassandra + ruby

Posted by Benjamin Black <b...@b3k.us>.
Full list of client options and defaults:
https://github.com/fauna/thrift_client/blob/master/lib/thrift_client/abstract_thrift_client.rb#L28-43

On Wed, Nov 17, 2010 at 10:13 AM, Benjamin Black <b...@b3k.us> wrote:
> Cassandra.new(keyspace, server, {:protocol =>
> Thrift::BinaryProtocolAccelerated})
>
> On Tue, Nov 16, 2010 at 5:13 PM, Ryan King <ry...@twitter.com> wrote:
>> On Tue, Nov 16, 2010 at 10:25 AM, Jonathan Ellis <jb...@gmail.com> wrote:
>>> On Tue, Sep 28, 2010 at 6:35 PM, Ryan King <ry...@twitter.com> wrote:
>>>> One thing you should try is to make thrift use
>>>> BinaryProtocolAccelerated, rather than the pure-ruby implementation
>>>> (we should change the default).
>>>
>>> Dumb question time: how do you do this?
>>>
>>> $ find . -name "*.rb" |xargs grep -i binaryprotocol
>>>
>>> in the fauna cassandra gem repo turns up no hits.
>>
>> I believe we're relying on the default from thrift_client (which
>> defaults to BinaryProtocol): https://github.com/fauna/thrift_client/
>>
>> -ryan
>>
>

Re: avro + cassandra + ruby

Posted by Benjamin Black <b...@b3k.us>.
Cassandra.new(keyspace, server, {:protocol =>
Thrift::BinaryProtocolAccelerated})

On Tue, Nov 16, 2010 at 5:13 PM, Ryan King <ry...@twitter.com> wrote:
> On Tue, Nov 16, 2010 at 10:25 AM, Jonathan Ellis <jb...@gmail.com> wrote:
>> On Tue, Sep 28, 2010 at 6:35 PM, Ryan King <ry...@twitter.com> wrote:
>>> One thing you should try is to make thrift use
>>> BinaryProtocolAccelerated, rather than the pure-ruby implementation
>>> (we should change the default).
>>
>> Dumb question time: how do you do this?
>>
>> $ find . -name "*.rb" |xargs grep -i binaryprotocol
>>
>> in the fauna cassandra gem repo turns up no hits.
>
> I believe we're relying on the default from thrift_client (which
> defaults to BinaryProtocol): https://github.com/fauna/thrift_client/
>
> -ryan
>

Re: avro + cassandra + ruby

Posted by Ryan King <ry...@twitter.com>.
On Tue, Nov 16, 2010 at 10:25 AM, Jonathan Ellis <jb...@gmail.com> wrote:
> On Tue, Sep 28, 2010 at 6:35 PM, Ryan King <ry...@twitter.com> wrote:
>> One thing you should try is to make thrift use
>> BinaryProtocolAccelerated, rather than the pure-ruby implementation
>> (we should change the default).
>
> Dumb question time: how do you do this?
>
> $ find . -name "*.rb" |xargs grep -i binaryprotocol
>
> in the fauna cassandra gem repo turns up no hits.

I believe we're relying on the default from thrift_client (which
defaults to BinaryProtocol): https://github.com/fauna/thrift_client/

-ryan