You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Basically, I'm not sure what driver I need for a Spring project using a CosmosDB. Is it the Spring Data one or the CosmosDB one?
Also, CosmosDB doesn't support unique index creation after container creation when continuous backups are enabled (docs); the indexes need to be created at the same time as the collection. Does the CosmosDB driver take that into account, or do we have to disable index creation altogether?
Azure Cosmos DB for MongoDB accounts with continuous backup don't support creating a unique index for an existing collection. For such an account, unique indexes must be created along with their collection creation, which must and can only be done using the create collection extension commands.
If you want to shard the Mongock changeLog collection, you need to use the key executionId as shard key.
How exactly do I do that? Is there a driver setting? Do I have to create the shard key manually on the server? (If so, because that needs an index, I assume I then have to set that on collection creation when continuous backups are enabled; cf. above?)
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Basically, I'm not sure what driver I need for a Spring project using a CosmosDB. Is it the Spring Data one or the CosmosDB one?
Also, CosmosDB doesn't support unique index creation after container creation when continuous backups are enabled (docs); the indexes need to be created at the same time as the collection. Does the CosmosDB driver take that into account, or do we have to disable index creation altogether?
Last but not least, the CosmosDB driver docs have an important note on shard keys:
How exactly do I do that? Is there a driver setting? Do I have to create the shard key manually on the server? (If so, because that needs an index, I assume I then have to set that on collection creation when continuous backups are enabled; cf. above?)
All reactions