You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kvrocks.apache.org by tw...@apache.org on 2023/04/29 11:02:25 UTC

[incubator-kvrocks-website] branch main updated: Add more concrete key encoding (#96)

This is an automated email from the ASF dual-hosted git repository.

twice pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-kvrocks-website.git


The following commit(s) were added to refs/heads/main by this push:
     new e81087f  Add more concrete key encoding (#96)
e81087f is described below

commit e81087f96ff65466b58c50731b83c11c7358634f
Author: Twice <tw...@apache.org>
AuthorDate: Sat Apr 29 19:02:20 2023 +0800

    Add more concrete key encoding (#96)
---
 community/data-structure-on-rocksdb.md | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/community/data-structure-on-rocksdb.md b/community/data-structure-on-rocksdb.md
index e29e043..79f54c6 100644
--- a/community/data-structure-on-rocksdb.md
+++ b/community/data-structure-on-rocksdb.md
@@ -10,10 +10,10 @@ Kvrocks prefixes the user key with the `namespace` and `cluster slot`. The names
 while the cluster slot determines its slot when cluster mode is enabled.
 
 ```text
-+-------------+-------------+--------------------+--------------+
-|  ns size    |  namespace  |   cluster slot     |  user key    |
-| (1byte: X)  |   (Xbyte)   |      (2byte)       |   (Nbyte)    |
-+-------------+-------------+--------------------+--------------+
++-------------+-------------+------------------------------+-----------------+------------+-------------+-----------+
+|  ns size    |  namespace  |   cluster slot               |  user key size  |  user key  |   version   |  sub key  |
+| (1byte: X)  |   (Xbyte)   | (2byte when cluster enabled) |   (4byte: Y)    |   (YByte)  |    (4byte)  |   (ZByte) |
++-------------+-------------+------------------------------+-----------------+------------+-------------+-----------+
 ```