Re: Choosing python client lib for Cassandra

2013-11-26 Thread Kumar Ranjan
Thanks Jonathan for the help. On Tue, Nov 26, 2013 at 6:14 PM, Jonathan Haddad wrote: > No, 2.7 only. > > > On Tue, Nov 26, 2013 at 3:04 PM, Kumar Ranjan wrote: > >> Hi Jonathan - Does cqlengine have support for python 2.6 ? >> >> >> On Tue, Nov 26, 2013 at 4:17 PM, Jonathan Haddad wrote: >> >>

Re: Choosing python client lib for Cassandra

2013-11-26 Thread Jonathan Haddad
No, 2.7 only. On Tue, Nov 26, 2013 at 3:04 PM, Kumar Ranjan wrote: > Hi Jonathan - Does cqlengine have support for python 2.6 ? > > > On Tue, Nov 26, 2013 at 4:17 PM, Jonathan Haddad wrote: > >> cqlengine supports batch queries, see the docs here: >> http://cqlengine.readthedocs.org/en/latest/t

Re: Choosing python client lib for Cassandra

2013-11-26 Thread Kumar Ranjan
Hi Jonathan - Does cqlengine have support for python 2.6 ? On Tue, Nov 26, 2013 at 4:17 PM, Jonathan Haddad wrote: > cqlengine supports batch queries, see the docs here: > http://cqlengine.readthedocs.org/en/latest/topics/queryset.html#batch-queries > > > On Tue, Nov 26, 2013 at 11:53 AM, Kumar

Re: Choosing python client lib for Cassandra

2013-11-26 Thread Jonathan Haddad
cqlengine supports batch queries, see the docs here: http://cqlengine.readthedocs.org/en/latest/topics/queryset.html#batch-queries On Tue, Nov 26, 2013 at 11:53 AM, Kumar Ranjan wrote: > Jon - Any comment on batching? > — > Sent from Mailbox for iPhone > > > On

Re: Choosing python client lib for Cassandra

2013-11-26 Thread Robert Coli
On Tue, Nov 26, 2013 at 11:46 AM, Kumar Ranjan wrote: > How do you insert huge amount of data? > http://www.palominodb.com/blog/2012/09/25/bulk-loading-options-cassandra ? =Rob

Re: Choosing python client lib for Cassandra

2013-11-26 Thread Kumar Ranjan
Jon - Any comment on batching? — Sent from Mailbox for iPhone On Tue, Nov 26, 2013 at 2:52 PM, Laing, Michael wrote: > That's not a problem we have faced yet. > On Tue, Nov 26, 2013 at 2:46 PM, Kumar Ranjan wrote: >> How do you insert huge amount of data? >> — >> Sent from Mailbox

Re: Choosing python client lib for Cassandra

2013-11-26 Thread Laing, Michael
That's not a problem we have faced yet. On Tue, Nov 26, 2013 at 2:46 PM, Kumar Ranjan wrote: > How do you insert huge amount of data? > — > Sent from Mailbox for iPhone > > > On Tue, Nov 26, 2013 at 2:31 PM, Laing, Michael > wrote: > >> I think thread pooling

Re: Choosing python client lib for Cassandra

2013-11-26 Thread Kumar Ranjan
How do you insert huge amount of data? — Sent from Mailbox for iPhone On Tue, Nov 26, 2013 at 2:31 PM, Laing, Michael wrote: > I think thread pooling is always in operation - and we haven't seen any > problems in that regard going to the 6 local nodes each client connects to. > We haven't tried

Re: Choosing python client lib for Cassandra

2013-11-26 Thread Kumar Ranjan
Hi Jon - you are right. Its that I understand other ORM like python sqlalchemy or perl DBIX by heart. So i can cql faster than use cqlengine. I will give a shot at python-driver based on Michael's recommendation. — Sent from Mailbox for iPhone On Tue, Nov 26, 2013 at 2:21 PM, Jonathan Haddad w

Re: Choosing python client lib for Cassandra

2013-11-26 Thread Laing, Michael
I think thread pooling is always in operation - and we haven't seen any problems in that regard going to the 6 local nodes each client connects to. We haven't tried batching yet. On Tue, Nov 26, 2013 at 2:05 PM, Kumar Ranjan wrote: > Michael - thanks. Have you tried batching and thread pooling

Re: Choosing python client lib for Cassandra

2013-11-26 Thread Robert Coli
On Tue, Nov 26, 2013 at 9:46 AM, Kumar Ranjan wrote: > I have worked with Pycassa before and wrote a wrapper to use batch > mutation & connection pooling etc. But > http://wiki.apache.org/cassandra/ClientOptions recommends now to use CQL > 3 based api because Thrift based api (Pycassa) will be su

Re: Choosing python client lib for Cassandra

2013-11-26 Thread Jonathan Haddad
We're currently using the "cql" package, which is really a wrapper around thrift. To your concern about deadlines, I'm not sure how writing raw CQL is going to be any faster than using a mapper library for anything other than the most trivial of project. On Tue, Nov 26, 2013 at 11:09 AM, Kumar

Re: Choosing python client lib for Cassandra

2013-11-26 Thread Kumar Ranjan
Jon - Thanks. As I understand, cqlengine is an object mapper and must be using for cql prepare statements. What are you wrapping it with, in alternative to python-driver?  — Sent from Mailbox for iPhone On Tue, Nov 26, 2013 at 1:19 PM, Jonathan Haddad wrote: > So, for cqlengine (https://githu

Re: Choosing python client lib for Cassandra

2013-11-26 Thread Kumar Ranjan
Michael - thanks. Have you tried batching and thread pooling in python-driver? For now, i would avoid object mapper cqlengine, just because of my deadlines. — Sent from Mailbox for iPhone On Tue, Nov 26, 2013 at 1:52 PM, Laing, Michael wrote: > We use the python-driver and have contributed som

Re: Choosing python client lib for Cassandra

2013-11-26 Thread Laing, Michael
We use the python-driver and have contributed some to its development. I have been careful to not push too fast on features until we need them. For example, we have just started using prepared statements - working well BTW. Next we will employ futures and start to exploit the async nature of new

Re: Choosing python client lib for Cassandra

2013-11-26 Thread Jonathan Haddad
So, for cqlengine (https://github.com/cqlengine/cqlengine), we're currently using the thrift api to execute CQL until the native driver is out of beta. I'm a little biased in recommending it, since I'm one of the primary authors. If you've got cqlengine specific questions, head to the mailing lis

Choosing python client lib for Cassandra

2013-11-26 Thread Kumar Ranjan
I have worked with Pycassa before and wrote a wrapper to use batch mutation & connection pooling etc. But http://wiki.apache.org/cassandra/ClientOptions recommends now to use CQL 3 based api because Thrift based api (Pycassa) will be supported for backward compatibility only. Apache site recommends

Re: Python Client

2011-06-11 Thread Carlos Sanchez
Thx a lot Sent from my iPad On Jun 11, 2011, at 12:42 AM, Jeremy Hanna wrote: > I would take a look at pycassa - https://github.com/pycassa/pycassa though > there is also a twisted client named Telephus - > http://github.com/driftx/Telephus. > > The complete list of current client language

Re: Python Client

2011-06-10 Thread Jeremy Hanna
I would take a look at pycassa - https://github.com/pycassa/pycassa though there is also a twisted client named Telephus - http://github.com/driftx/Telephus. The complete list of current client language options are found here: http://wiki.apache.org/cassandra/ClientOptions On Jun 10, 2011, at

Re: Python Client

2011-06-10 Thread Sasha Dolgy
pycassa.. http://pycassa.github.com/pycassa/ On Sat, Jun 11, 2011 at 4:58 AM, Carlos Sanchez wrote: > All, > > I was wondering if there are Cassandra python clients and which one would > be the best to use > > Thanks a lot, > > Carlos >

Python Client

2011-06-10 Thread Carlos Sanchez
All, I was wondering if there are Cassandra python clients and which one would be the best to use Thanks a lot, Carlos

Re: python client example

2011-01-13 Thread felix gao
Thanks guys, playing around with pycassa right now. seems pretty good. On Thu, Jan 13, 2011 at 2:56 PM, Aaron Morton wrote: > Ah, i get it now. The python code generated from running ant gen-thrift-py > . > > IMHO Start with Pycassa *even* if you want to go your own way later. It > solves a lot o

Re: python client example

2011-01-13 Thread Aaron Morton
Ah, i get it now. The python code generated from running ant gen-thrift-py .IMHO Start with Pycassa *even* if you want to go your own way later. It solves a lot of problems for you and will save you time. AOn 14 Jan, 2011,at 11:46 AM, Tyler Hobbs wrote:Right, python-cassandra just provides the raw

Re: python client example

2011-01-13 Thread Tyler Hobbs
Right, python-cassandra just provides the raw Thrift API, which is no fun at all. You should start out with pycassa. - Tyler On Thu, Jan 13, 2011 at 4:45 PM, Aaron Morton wrote: > Sorry, I meant where did you get python-cassandra from on the web. > > Can you use Pycassa, even just as a learning

Re: python client example

2011-01-13 Thread Aaron Morton
Sorry, I meant where did you get python-cassandra from on the web.Can you use Pycassa, even just as a learning experience ? There is a tutorial here http://pycassa.github.com/pycassa/tutorial.htmlAOn 14 Jan, 2011,at 11:42 AM, felix gao wrote:this is where it is stored /opt/local/Library/Frameworks

Re: python client example

2011-01-13 Thread felix gao
this is where it is stored /opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/ On Thu, Jan 13, 2011 at 2:39 PM, Aaron Morton wrote: > Pycassa https://github.com/pycassa/pycassa > Has documentation here http://pycassa.github.com/pycassa/ > >

Re: python client example

2011-01-13 Thread Aaron Morton
Pycassa https://github.com/pycassa/pycassaHas documentation here http://pycassa.github.com/pycassa/Where does python-cassandra live ? AaronOn 14 Jan, 2011,at 11:34 AM, felix gao wrote:Guys,I just installed python-cassandra 0.6.1 and Thrift 0.5.0 on my machine and I would like to query against also

python client example

2011-01-13 Thread felix gao
Guys, I just installed python-cassandra 0.6.1 and Thrift 0.5.0 on my machine and I would like to query against also write into a cassandra server. I guess i am pretty weak in google-fu, there isn't any examples for me get started with. Please help me on how to do this. Thanks, Felix

Re: cassandra + avro | python client vs java client

2010-10-27 Thread Jonathan Ellis
om: Jonathan Ellis [mailto:jbel...@gmail.com] > Sent: Wednesday, October 27, 2010 5:01 PM > To: user > Subject: Re: cassandra + avro | python client vs java client > > Does Avro have a Python C extension yet? > > If not, 10x is right in line with how much faster I would exp

RE: cassandra + avro | python client vs java client

2010-10-27 Thread Koert Kuipers
It does not have a c extension as far as I know -Original Message- From: Jonathan Ellis [mailto:jbel...@gmail.com] Sent: Wednesday, October 27, 2010 5:01 PM To: user Subject: Re: cassandra + avro | python client vs java client Does Avro have a Python C extension yet? If not, 10x is

Re: cassandra + avro | python client vs java client

2010-10-27 Thread Jonathan Ellis
y across multiple keys is much faster. Also using a clientpool > would probably speed it up more too. > > > > Then I ran a python client. The results are: > > *** test1 *** > > client:rpc get_range_slices > > client:rpc call took 30.6 seconds > > 100 keys