Uploaded image for project: 'Apache IoTDB'
  1. Apache IoTDB
  2. IOTDB-6036

[delete timeseries] the mods file is too large, causing Query very slow even OOM problem

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Blocker
    • Resolution: Unresolved
    • None
    • master branch
    • Core/Server
    • None

    Description

      In some scenarios, users perform ttl operations by deleting the time series.

      There is a user every 5 seconds to delete 14 days old data, pseudo-SQL is as follows:

      delete timeseres root.cisdi.im.steel.sentry.** where time < systemTime - 14d 

      Each execution of this SQL will append a line of records to the mods file, and after a while, the file will become very large, as shown in the attachment, the mods file has reached 200 of megabytes, and the deleted records in the file have been about 3 million lines.

       

      When you query the contents related to this sequence, the query engine filters out the invalid contents in the mods file. Therefore, all the contents of the mods file are loaded into the memory. This operation may cause that the query result cannot be loaded for a long time or even the OOM result is displayed.

      Attachments

        1. mods.png
          736 kB
          Zhijia Cao
        2. Snipaste_2023-06-29_17-52-27.png
          629 kB
          Zhijia Cao

        Activity

          People

            caozhijia1 Zhijia Cao
            caozhijia1 Zhijia Cao
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: