CommitImport()

Commit a 2PC import job created with options.auto_commit=false, making its staged imported data visible.

Request Syntax

static nlohmann::json CommitImport(const std::string& url, const std::string& job_id, const std::string& db_name = "default", const std::string& api_key = "")

RETURNS:

nlohmann::json

Returns the JSON response from the bulk-import endpoint.

ERROR HANDLING:

  • std::exception

    Thrown when request construction, transport, or response processing fails. Inspect the exception message or returned Status for failure details.

Example

Demonstrates CommitImport() with the C++ SDK.

auto response = milvus::BulkImport::CommitImport(
    "http://localhost:19530", "import-job-id", "default", "root:Milvus");

Try Managed Milvus for Free

Zilliz Cloud is hassle-free, powered by Milvus and 10x faster.

Get Started
Feedback

Was this page helpful?