cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Thomas Heller <i...@zilence.net>
Subject Re: Thrift Client on Ruby, does it need compiled bindings? (or anything else to make it faster?)
Date Sun, 20 Jun 2010 18:34:50 GMT
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

Mime
View raw message