rnewson commented on issue #5044:
URL: https://github.com/apache/couchdb/issues/5044#issuecomment-2090364461

   Your expectation is well-founded, and couchdb does behave that way. So there 
must be something wrong somewhere. Could it be that the number of in-progress 
requests keeps climbing? That is, making more and more queries even though 
previous ones have not yet completed? If so, increased latency on the latter 
requests is expected due to internal queues. 
   
   I suggest using a tool like ApacheBench to confirm or refute this, set it 
with some modest concurrency and point it at a view with some appropriate query 
parameters (i.e, don't read the entire view on each request). 
   
   Note that a view query operates in two phases. the first phase is to ensure 
the view is up to date with respect to any database updates (by running any new 
updates through the map and reduce functions). The second phase is the actual 
query. It will help us to know if the database in question is being written to 
(and, if so, how intensely) during these queries. e.g, we would expect a view 
query to take longer if a large number of updates were made to the database 
just beforehand.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to