Uploaded image for project: 'James Server'
  1. James Server
  2. JAMES-3940

Set up TTL on mailbox_change and email_change

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • master
    • None
    • cassandra, JMAP
    • None

    Description

      Why: Today the changes takes 1.8GB out of 20GB Cassandra database.
       
      ```
      Table: email_change
      SSTable count: 10
      Old SSTable count: 0
      Space used (live): 1458287826
       
      Table: mailbox_change
      SSTable count: 6
      Old SSTable count: 0
      Space used (live): 321767927
      ```
       
      Changes serves resynchronisation, and is used up resonnably quickly. Once used, those can be discarded as not useful anylonger.
       
      => TTL value: 2 month (default value - configurable)
       
      Note that if missing this is handled well (`cannotCalculateChanges`)

      Attachments

        Issue Links

          Activity

            People

              aduprat Antoine Duprat
              QuanTH Tran Hong Quan
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 40m
                  40m