cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Quattlebaum" <>
Subject RE: cassandra & php
Date Fri, 18 Feb 2011 16:48:44 GMT


Just wondering what you are using if not phpcassa?






From: John Lennard [] 
Sent: Thursday, February 17, 2011 6:41 PM
Subject: Re: cassandra & php




How does this connection pooling fit in with the  TSocketPool.php
classes? Or am I off the wicket here?


These are just a few of my observations in relation to what i have seen
so far when working with PHP and Cassandra. I have been working with
cassandra / php for the last 8 months now in a project, and while not
using phpcassa, it strikes me that the Thrift layer in php may need some
energy directed at it. Reads in particular do seem noticeably slow and i
am not sure if this is tied in with the php socket implementation, how
my test cluster is currently set up or how i am currently working with
and structuring my data. I also wonder if there are other aspects of the
thrift layer that could pushed into a native module as there is still
seems to be lots  php code present in the thrift classes.


Another observation I have made during this work is that xdebug has a
significant effect on performance, which can make profiling a little
more challenging.









On 18/02/2011, at 10:49 AM, Tyler Hobbs wrote:

	what i'm not entirely happy with in using php versus java/hector
is that there isn't any connection pooling.  maybe that's just me and my
poor skills.  

Better connection pooling and failover are on the way.  You can check on
the progress in the connection-pooling branch here:

I just haven't had time to wrap it up lately, but it should be done

Tyler Hobbs
Software Engineer, DataStax <> 
Maintainer of the pycassa <>  Cassandra
Python client library


View raw message