[FEATURE REQ] Cosmos createItem accepts row level Time To Live (TTL)
See original GitHub issueIs your feature request related to a problem? Please describe. Using Cosmos DB to store sessions, I wish to use the Time To Live (TTL) for removing expired data. This is to use spare RU/s for clean-up and thus avoid running out of capacity. Currently TTL can be configured on container level using the Cosmos DB Java SDK v4, but not for individual rows. I wish to use row level TTL to only have valid sessions in the database.
Describe the solution you’d like
Cosmos DB createItem
and upsert
accepts TTL for the item to be created.
Compare with the Dynamo DB Java API.
Describe alternatives you’ve considered Setting Container TTL with maximum possible session validity time. This requires additional capacity for the database.
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (4 by maintainers)
Top Results From Across the Web
Configure time to live in Azure Cosmos DB - Microsoft Learn
Use the following steps to enable time to live on a container with no expiration. Enabling TTL at the container level to allow...
Read more >Control Retention of items using TTL in Azure Cosmos DB
This article will provide a detailed walkthrough for retaining items in Cosmos DB for different durations and on different levels.
Read more >Using the Transactional Outbox Pattern with Azure Cosmos ...
First, Azure Cosmos DB – in case you haven't heard of the service so ... useful feature of Cosmos DB: Time-To-Live (TTL) on...
Read more >Overview of Azure Cosmos DB - Simple Talk - Redgate Software
Cosmos DB is Microsoft's highly scalable, NoSQL database platform running ... Azure Cosmos DB allows you to set TTL (Time-To-Live) for each ...
Read more >Azure Cosmos DB SQL API client library for Python - PyPI
Update analytical store ttl (time to live); Get the connection string; Get the minimum RU/s of a container. Workarounds. Bulk processing Limitation Workaround....
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@JanneKataja-TomTom - currently the only option to set TTL on java SDK is this : https://docs.microsoft.com/en-us/azure/cosmos-db/how-to-time-to-live?tabs=dotnetv2%2Cjavav4#java-set-ttl-item Closing this issue.
@kirankumarkolli - any update on this ?