How to enable multi tenancy on the existing collection?

This does not work:

collection.config.update(
     multi_tenancy_config=Reconfigure.multi_tenancy(enabled=True)
)

hi @arturs_sprogis !!

Welcome to our community :hugs:

Not all collection configurations are mutable. Here you have a list of what configs are:

Note that you can only change those:

collection.config.update(
    multi_tenancy_config=wvc.config.Reconfigure.multi_tenancy(
        auto_tenant_activation=True,
        auto_tenant_creation=True
    )
)

Because of that you need to enable multi tenancy while creating a new collection, create a new tenant on that new collection, and migrate your data over to it.

Let me know if this helps!

Thanks!

To Duda’s point, you cannot change/update a single-tenant collection into a multi-tenant collection. You need to create a new collection with multi_tenancy enabled.