Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
Alte Versionen der View-Dokumente können Sie mit dem Befehl _compact aus der Datenbank entfernen. Der _compact-Befehl wird immer auf das Designdokument ausgeführt, das die entsprechenden Views definiert. Der Befehl wird per POST-Methode ausgeführt.
POST /dbname/_compact/designdoc/
POST /todoapp/_compact/todoapp
Das folgende Beispiel führt eine View-Compaction auf das Designdokument aus, das in der hier verwendeten Beispielanwendung benutzt wird.
curl -vX POST http://127.0.0.1:5984/todoapp/_compact/todoapp
> POST /todoapp/_compact/todoapp HTTP/1.1
< HTTP/1.1 202 Accepted
< Content-Type: text/plain;charset=utf-8
{"ok":true}