Internal Storage Architecture of TiDB
Key-Value Model TiDB stores data using a key-value structure where both key and value are raw byte arrays. Conceptually, TiKV behaves like a massive ordered map: entries are sorted by the binary representation of keys, enabling efficient range scans and seeks. Two esssential points define this model...