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

Using Bits instead of Bytes to Store Boolean Type Data

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • master branch
    • None
    • None

    Description

      In TsFile, Boolean type data typically takes up 1 byte (i.e. 8 bits) of storage space. This means that regardless of whether the Boolean value is true or false, they will occupy the same amount of space. However, since Boolean type only needs 1 bit to represent true or false, using bits to store Boolean type data can greatly reduce the required storage space.

      Using bits instead of bytes to store Boolean type data can greatly reduce the required storage space while improving data storage and transmission efficiency.

       

       

       

      Attachments

        1. image-2023-04-19-14-33-24-841.png
          108 kB
          Liuxuxin
        2. image-2023-04-19-14-33-37-296.png
          119 kB
          Liuxuxin

        Activity

          People

            Unassigned Unassigned
            ThuLiuxuxin Liuxuxin
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: