Uploaded image for project: 'Couchbase Documentation'
  1. Couchbase Documentation
  2. DOC-11679

Information on maxTTL for collections is not accurate

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 7.0, 7.1, 7.2, 7.6.0
    • 7.0.0, 7.1.0, 7.2.0
    • documentation
    • None
    • 0

    Description

      In doc pages,
      https://docs.couchbase.com/server/current/learn/data/expiration.html
      https://docs.couchbase.com/server/current/rest-api/creating-a-collection.html

      We find language as, "The default value for maxTTL is 0, which disables TTL for the collection." . This is not completely accurate, it is true that the default value of maxTTL is 0, however, for collection this means that bucket's maxTTL is being used. See below table for the values for maxTTL and what they represent for buckets and collections.

       

      Bucket maxTTL value What the value represents
      0(default) TTL disabled meaning no expiry, i.e., documents do not expire
      Any positive integer Number of seconds document documents will live
      Collection maxTTL value What the value represents
      0(default) Use bucket's maxTTL value
      Any positive integer Number of seconds document documents will live

       Note: If maxTTL is unspecified, the default value of maxTTL in both cases(bucket and collection) are 0, but they mean different things.

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              gary.gray Gary Gray
              Abhijeeth.Nuthan Abhijeeth Nuthan
              Votes:
              0 Vote for this issue
              Watchers:
              12 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes

                  PagerDuty