rethink-java-driver icon indicating copy to clipboard operation
rethink-java-driver copied to clipboard

Set TCP_NODELAY on the RethinkDB connection to avoid Nagle's algorithm delay

Open ddfisher opened this issue 11 years ago • 0 comments

We were seeing simple local gets (which should have taken ~1ms according to the query profiler) take ~40ms with this driver. @danielmewes suggested setting TCP_NODELAY on the SocketChannel to avoid delays caused by Nagle's algorithm. This fixed our problem.

This fix should be strictly positive for response times.

ddfisher avatar Mar 25 '15 22:03 ddfisher