guanfeix edited a comment on issue #701:
URL:
https://github.com/apache/couchdb-documentation/issues/701#issuecomment-1068647449
Ok,thanks a lot. It real helpful for me. In the last i try a lot , finally
find the solution for me of mannualy compact views.But the description in
document real puzzle me,why designname refer to dbname/viewname in operation,I
recommend you add one detailed example on document,It will real kindful for
CouchDB newbee
It conflict with the viewfunction description here.
In viewfunction:
GET /{db}/_design/{ddoc}/_view/{view}
[](https://docs.couchdb.org/en/3.2.0/api/ddoc/views.html#db-design-design-doc-view-view-name)/db/_design/design-doc/_view/view-name
GET /{db}/_design/{ddoc}/_view/{view}
ddoc – Design document name
curl -H "Content-Type: application/json" -X POST
http://localhost:5984/dbname/_design/dbname/viewname works for me
In compation:
POST
/{db}/_compact/{ddoc}[¶](https://docs.couchdb.org/en/stable/api/database/compact.html#post--db-_compact-ddoc)
designname refer to dbname/viewname
curl -H "Content-Type: application/json" -X POST
http://localhost:5984/dbname/_compact/designname
curl -H "Content-Type: application/json" -X POST
http://localhost:5984/dbname/_compact/dbname/viewname




--
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]