db_compact(cushion, dbname, as = "list", ...)Cushion object. Required.as parameter)
Compaction can only be requested on an individual database; you cannot compact all the databases for a CouchDB instance. The compaction process runs as a background process. You can determine if the compaction process is operating on a database by obtaining the database meta information, the compact_running value of the returned database structure will be set to true. See GET /db. You can also obtain a list of running processes to determine whether compaction is currently running. See "/_active_tasks"
## Not run:
# (x <- Cushion$new())
# db_compact(x, dbname = "iris")
# ## End(Not run)
Run the code above in your browser using DataLab