While running a pkg upgrade on my FreeBSD box, I noticed the following message scroll by while couchdb was being updated to the latest version:
CONFIGURATION NOTES: PERFORMANCE For best response (minimal delay) most sites will wish to uncomment this line from /usr/local/etc/couchdb/local.ini: socket_options = [{recbuf, 262144}, {sndbuf, 262144}, {nodelay, true}] Otherwise you'll see a large delay when establishing connections to the DB.
And just like that my response times for simple fetch requests to couchdb went from ~200ms to ~4ms. This was something that was seriously bothering me, and had me contemplating dropping couchdb in favor of something else. If ‘most sites’ will want to do this, why isn’t this the default setting, I wonder? Oh well.