code: public void compact() {
          InputStream response = null;
          try {
              response = couchDbClient.post(new DatabaseURIHelper(dbUri).path("_compact").build(),
                      "");
          } finally {
              close(response);
          }
      }
docs: Triggers a database <i>compact</i> request.