Relationship between Range and SSTable

Does Range and ssangle map 1: 1?
I wonder if a and b exist equally with each other.
I counted the number of sst files on the server. The number of files seems to be a little more than the range number.

Where is their relationship defined?

I know that when the table is compacted, two sst files are merged into one.
I just wonder relationship of range and sst file level 1(lowest level).

Hi @yeri,

The relationship between ranges and sstables should map to be 1:1 under normal conditions. You may see a few more sst files than ranges due to the fact that a range may have split after the backup started and before that range was written to the sst file. But otherwise, you should see both sst files and ranges be equal with a very small difference between the two.

Thanks,

Ron

Hi @yeri,

Just wanted to clarify my previous answer, in the context of backing up a database, the relationship would be 1:1, otherwise there is no relationship between sst files and ranges and those numbers would never match.

Thanks,

Ron