Bad total_rows for /{db}/_design_docs #1603
Comments
I think this is a docs error, since _design_docs with a namespace isn’t handled any special in the |
Hey @janl, sorry for the response delay, I'm just back from vacation (been in Germany, ftw!) The fabric bit is fine, we don't count rows when walking locals' btree, it's kind of expensive and ~meaningless, so we just pass The |
Hi @eiri, this is blocking 2.3.0's release. Would you have time to look at a PR for this this week? |
@wohali yes, I have a half of the fix for this done and a missing part is |
Expected Behavior
http://docs.couchdb.org/en/stable/api/database/bulk-api.html#db-design-docs says that the response for
GET /{db}/_design_docs
is a JSON object with:Current Behavior
The
total_rows
is the number of documents in the database, not restricted to design documents.Steps to Reproduce (for bugs)
Here is an example:
In this example, the database has 34 documents: 6 design docs and 28 data docs. But the total_rows for
_design_docs
says 34, and not 6 as the documentation suggests.Your Environment
The text was updated successfully, but these errors were encountered: