microsoft / spring-data-cosmosdb

Access data with Azure Cosmos DB
MIT License
93 stars 68 forks source link

Time to live on container #522

Closed ViswanathVeerappan closed 4 years ago

ViswanathVeerappan commented 4 years ago

Hi Team, We are using spring data cosmos db for one of the applications in our company. The problem we are noticing is with the annotation @Document with default values. Having the default values enables the application to create the container if it does not exist with ru set to 4000 and collection name as the model object name except the time to live property on the container. This is by default set to "Off" on the container even though the application sets a value of -1. Is this an expected behavior wherein we have to enable it at the container level on the azure portal?

ViswanathVeerappan commented 4 years ago

Duplicate issue. Its being tracked here https://github.com/microsoft/spring-data-cosmosdb/issues/523