Enable/Disable Vector Index Auto-Compaction

By default, Hippo performs segment auto-compaction automatically. Users can enable/disable it via below command.

curl -u shiva:shiva -XPOST 'localhost:8902/hippo/v1/{table}/_embedding_index_auto_compaction?database_name={database_name}&pretty' -H 'Content-Type: application/json' -d'{
  "index_name" : "pq_index",
  "enable_auto_compaction" : true,
  "wait_for_completion" : true,
  "timeout" : "2m"


  "job_id" : "737e8f256f7141c69d4871bab51fadb6",
  "job_status" : "SHIVA_JOB_SUCCESS",
  "task_results" : [
      "id" : "a6ea4f51db754485b0c1bcba54f201ab",
      "status" : "TASK_SUCCESS",
      "server" : "tw-node48:8702",
      "execute_time" : 0.0

Parameter description:

tableTable name, such as "book" created in this exampleYes
database_nameDatabase where the table is locatedNo, defaults to "default" database
enable_auto_compactionEnable/disable auto-compactionYes
index_nameVector index nameYes
wait_for_completionWhether to wait until the job is doneYes
timeoutOperation timeoutIf "wait_for_completion" is set to true, timeout parameter is required
Table 29 Enable/Disable Vector Index Auto-Compaction (Python API)