Friday, June 20, 2014

Slow peformance with MariaDB Java Client Connector?

Noticing a small delay in executing queries using the MariaDB Java Client Connector? Especially when the amount of data returned is small (say, a count() or something)?

Try setting this property for your JDBC connection:

tcpNoDelay=true

It's because of Nagle's Algorithm
 

1 comment:

Matty K said...

Or carry it over a datagram-based protocol, like UDP.

Probably easier to just disable Nagling.