Skip to content

Commit

Permalink
Polish block docs (#437)
Browse files Browse the repository at this point in the history
* Polish block dosc

* Update tsdb.md
  • Loading branch information
wu-sheng committed Apr 24, 2024
1 parent b8bcf96 commit bf6c099
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions docs/concept/tsdb.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Within a part, data is split into multiple files in a columnar manner. The times

In addition, each part maintains several metadata files. Among them, `metadata.json` is the metadata file for the part, storing descriptive information, such as start and end times, part size, etc.

The `meta.bin` is a skipping index file serves as the entry file for the entire part, helping to index the `primary.bin` file.
The `meta.bin` is a skipping index file that serves as the entry file for the entire part, helping to index the `primary.bin` file.

The `primary.bin` file contains the index of each [block](#Block). Through it, the actual data files or the tagFamily metadata files ending with `.tfm` can be indexed, which in turn helps to locate the data in blocks.

Expand All @@ -33,7 +33,9 @@ Notably, for data of the `Stream` type, since there are no field columns, the `f

## Block

The diagram below shows the detailed fields within each block. The block is the minimal unit of tsdb, which contains several rows of data. Due to the column-based design, each block is spread over several files.
Each block holds data with the same series ID.
The max size of the measure block is controlled by data volume and the number of rows. Meanwhile, the max size of the stream block is controlled by data volume.
The diagram below shows the detailed fields within each block. The block is the minimal unit of TSDB, which contains several rows of data. Due to the column-based design, each block is spread over several files.

![measure-block](https://skywalking.apache.org/doc-graph/banyandb/v0.6.0/measure-block.png)
![stream-block](https://skywalking.apache.org/doc-graph/banyandb/v0.6.0/stream-block.png)
Expand Down

0 comments on commit bf6c099

Please sign in to comment.