cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christian van der Leeden <>
Subject Re: Thrift Client on Ruby, does it need compiled bindings? (or anything else to make it faster?)
Date Sun, 20 Jun 2010 20:18:11 GMT
Hi Thomas,

	my tests show that it is not only an issue with inserts
but also with gets, so importer or not, the ruby client
is not the fastest on earth...  And my app is RoR, so
I'm stuck to using ruby (not that I don't like it...)


On Jun 20, 2010, at 8:34 PM, Thomas Heller wrote:

> Hey there,
> I saw the same thing and it worried me a little bit, but honestly its
> just ONE core of your CPU capping out. You could either add some
> threading to your insert script, or just spin up another process and
> see your insert rate nearly double. Although C might add some speed, I
> found that in a "realworld" environment where I'll have a bunch of
> ruby processes (rack apps and the like) it really doesnt matter since
> its just CPU.
> CPU is cheap, but you are going to need some if you want to saturate
> Cassandra from ruby.
> Other than that, dont use ruby if you MUST insert fast using one
> process without threads. :P
> /thomas

View raw message