Uploaded image for project: 'translate5'
  1. translate5
  2. TRANSLATE-4654

Change batch deletion behavior in TM Maintenance

XMLWordPrintable

    • High
    • Hide
      7.24.0: Changes needed for feature release
      7.23.3: Improved batch deletion in TM Maintenace for small batches
      Show
      7.24.0: Changes needed for feature release 7.23.3: Improved batch deletion in TM Maintenace for small batches

      The problem:
      Deleting segments in batch triggers reorganize of the memory, which takes a lot of time for big memories.

      The solution:
      If amount of segments in batch deletion query is less than 300 do not call entriesdelete api endpoint in t5memory, but instead delete segments one-by-one in a loop. Segments should be deleted in reverse ordering (from the latest to the first to avoid btree rebuilding error in between).

      In case TM btree becomes corrupt while deleting, memory needs to be reorganized and then deletion continued.

            leonkiz Leon Kiz
            leonkiz Leon Kiz
            Sanya Mikhliaiev
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: