You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@hbase.apache.org by Wayne <wa...@gmail.com> on 2011/01/04 22:55:32 UTC

Python + TBinaryProtocolAccelerated

Having worked with the other java/thrift based nosql solution we have been
using Thrift Accelerated Protocol and it works great. It is very fast and we
have seen 3-4x performance improvement on some read operations (wide rows).
We have never seen this "advertised" or referrenced with any hbase python
sample code so I thought I would post this to help.

from thrift.protocol.TBinaryProtocol import TBinaryProtocolAccelerated
...

protocol = TBinaryProtocolAccelerated(transport)
...

Thanks!

Re: Python + TBinaryProtocolAccelerated

Posted by Ryan Rawson <ry...@gmail.com>.
We've used the php binary acceleration module here at SU and it works
great.  I don't see why the python accelerated version wouldn't work
either.

It's more of a documentation oversight than anything else I think.

On Tue, Jan 4, 2011 at 1:55 PM, Wayne <wa...@gmail.com> wrote:
> Having worked with the other java/thrift based nosql solution we have been
> using Thrift Accelerated Protocol and it works great. It is very fast and we
> have seen 3-4x performance improvement on some read operations (wide rows).
> We have never seen this "advertised" or referrenced with any hbase python
> sample code so I thought I would post this to help.
>
> from thrift.protocol.TBinaryProtocol import TBinaryProtocolAccelerated
> ...
>
> protocol = TBinaryProtocolAccelerated(transport)
> ...
>
> Thanks!
>

Re: Python + TBinaryProtocolAccelerated

Posted by Stack <st...@duboce.net>.
Thanks Wayne.  It works even though our shipping thrift version is pretty old?
St.Ack

On Tue, Jan 4, 2011 at 1:55 PM, Wayne <wa...@gmail.com> wrote:
> Having worked with the other java/thrift based nosql solution we have been
> using Thrift Accelerated Protocol and it works great. It is very fast and we
> have seen 3-4x performance improvement on some read operations (wide rows).
> We have never seen this "advertised" or referrenced with any hbase python
> sample code so I thought I would post this to help.
>
> from thrift.protocol.TBinaryProtocol import TBinaryProtocolAccelerated
> ...
>
> protocol = TBinaryProtocolAccelerated(transport)
> ...
>
> Thanks!
>