spring-data-mongodb @indexed doesn't work when multi-tenant collections -
the project based on spring-data-mongodb use @indexed doesn't work when use multi-tenant collections.the following code:
@document(collection = "#{ @tenantprovider.gettenant()}activity") @data public class activity { @id private string id; @indexed private string activityid; }
if collection definition dynamic of course have make sure you're creating indexes manually there's no way determine possible collections might affected.
users go ahead , create indexes manually using indexoperations
.
Comments
Post a Comment