You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@couchdb.apache.org by GitBox <gi...@apache.org> on 2018/11/02 17:12:56 UTC

[GitHub] wohali commented on issue #1707: java.net.SocketTimeoutException: Read timed out

wohali commented on issue #1707: java.net.SocketTimeoutException: Read timed out
URL: https://github.com/apache/couchdb/issues/1707#issuecomment-435448212
 
 
   This is not a CouchDB bug.
   
   You have five options:
   
   1. Using the `stale=ok` option to querying your view, the response will not wait for the view to finish building.
   1. Improve system performance (faster CPU, more RAM, HDD --> SSD --> NVMe)
   1. Force index updating ASAP on a cronjob or similar so that when queries are made to the view, it is already built
   1. Delay compaction so that it only occurs outside of application usage hours. Put the setting in your `local.ini` file, [here is the documentation in `default.ini`](https://github.com/apache/couchdb/blob/master/rel/overlay/etc/default.ini#L457-L533).
   1. Consider moving to [Mango](http://docs.couchdb.org/en/stable/api/database/find.html) from JavaScript views, as these do not require an external process and are much faster than their equivalent JS view.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services