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