Speed problems

Aug 20, 2012 at 10:43 AM

On a cross-over LAN cable I was getting only 5 record inserts per second.  I have increased this to 500 by changing the following

 

ConnectionPool.cs

public Cassandra.Client Add()
{
         var sw = Stopwatch.StartNew();
         var config = this._ConnectionPool.ConnectionConfig;
         var host = this.Host;
         var port = config.Port;
	TTransport socket = new TSocket(host, port);

	//This is the line I added
	socket.GetTSocket().TcpClient.NoDelay = true;
Although now I am still only getting 500 inserts per second whereas on the same machine I get 7500.