Skip to content

is it possible to create collection per user? #33510

Discussion options

You must be logged in to vote

Each time you create a new collection, milvus will add more threads to manage the collection. With a larger number of collections, milvus could run into trouble or slow response. So, it is strongly recommended to keep the number of collections under 1000.

Partition key is a good solution for handling millions of users: https://milvus.io/docs/multi_tenancy.md#Partition-oriented-multi-tenancy

For example, we create a collection with a partition key field: "username", is_partition_key=True

fields=[
    FieldSchema(name="id", dtype=DataType.INT64, is_primary=True, auto_id=False),
    FieldSchema(name="vector", dtype = DataType.FLOAT_VECTOR, dim=dim),
    FieldSchema(name="username", dtype = D…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by JenuelDev
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants