How to use ‘pymilvus.bulk_writer bulk_import’ to import data to a specified database instead of the default database #39634
-
I'm using bulk_import to import data, but I can't specify a database, I can only import data to the default database, what parameters should i add? here is my code from pymilvus.bulk_writer import bulk_import url = f"http://xxx:19530" resp = bulk_import( job_id = resp.json()['data']['jobId'] |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
The latest code of pymilvus has added a parameter "db_name" for the bulk_import api: But the new version is not released, yet. In the next minor version, you will be able to specify the database. The next minor version will be released in 1 ~ 2 weeks. |
Beta Was this translation helpful? Give feedback.
The latest code of pymilvus has added a parameter "db_name" for the bulk_import api:
https://github.com/milvus-io/pymilvus/blob/c5a3c18be2fb4dde06167f05af2761456af0e2d4/pymilvus/bulk_writer/bulk_import.py#L81
But the new version is not released, yet. In the next minor version, you will be able to specify the database. The next minor version will be released in 1 ~ 2 weeks.