benoitc / couchbeam

Apache CouchDB client in Erlang
Other
242 stars 113 forks source link

crash view on big low indexed DB #134

Closed stofel closed 8 years ago

stofel commented 8 years ago

Timeout of couchbeam_view_stream:do_init_stream too low

change for my 4М docs database. src/couchbeam_view_stream.erl --define(TIMEOUT, 10000). +-define(TIMEOUT, 100000).

stofel commented 8 years ago

Sorry, upper message are wrong. To get work with views in big DB with fragmented index need add undocumented request option {recv_timeout, Timeout}. Example: couchbeam_view:fetch(Db, {DesignName, ViewName}, [{recv_timeout, 200000}|Options]). for 200sec timeout.