Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

412
Views
Does update Cosmos DB TTL container settings will impact on old items?

I updated my cosmos db container with this code

var containerResponse = await _cosmosContainer.ReadContainerAsync();
            var containerProperties = containerResponse.Resource;
            if (containerProperties.DefaultTimeToLive == null)
            {
                containerProperties.DefaultTimeToLive = 60 * 60 * 24 * 180; // set 180 days default TTL 
                await _cosmosContainer.ReplaceContainerAsync(containerProperties);
            }

Does update Cosmos DB TTL container settings will impact on old items?

over 4 years ago · Santiago Trujillo
1 answers
Answer question

0

From the docs,

After you set the TTL at a container or at an item level, Azure Cosmos DB will automatically remove these items after the time period, since the time they were last modified.

Yes it will impact on old items.

over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!