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 2020/03/02 13:41:38 UTC

[GitHub] [couchdb] rnewson commented on issue #2621: GET {db}/_index endpoint response does not reflect index deletion

rnewson commented on issue #2621: GET {db}/_index endpoint response does not reflect index deletion
URL: https://github.com/apache/couchdb/issues/2621#issuecomment-593407642
 
 
   mango's "list" function lists the contents of the ddoc_cache which does not accurately represent the list of indexes. In my opinion ddoc_cache should only be used to speed up the loading of design documents on request, it's not appropriate to use it to make any claim about the current state of the database.
   
   One of two paths suggest themselves;
   
   1) change mango list to query the database for the list of ddocs 
   2) ensure there are bounds of how inaccurate the ddoc cache can get (will an index delete request trigger cache invalidation directly? are we waiting for the LRU to remove this item after a time delay or, worse, only when we hit capacity and must make space for a new ddoc?)
   
   

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services