question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[FEATURE REQ] Cosmos createItem accepts row level Time To Live (TTL)

See original GitHub issue

Is 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:closed
  • Created 3 years ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
kushagraThaparcommented, Nov 2, 2020
0reactions
kushagraThaparcommented, Sep 30, 2020

@kirankumarkolli - any update on this ?

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found