SequoiaDB巨杉資料庫 編目資訊快照

2021-10-25 21:38:45 字數 2802 閱讀 4512

sdb_snap_catalog

編目資訊快照列出所有集合的編目資訊。

note:

只能在協調節點執行。

欄位名

型別描述

name

字串集合完整名

uniqueid

長整型集合的uniqueid,在集群上全域性唯一

ensureshardingindex

布林是否自動為分割槽鍵欄位建立索引

replsize

整型執行修改操作時需要同步的副本數

當執行更新、插入、刪除記錄等操作時,僅當指定副本數的節點都完成操作時才返回操作結果

shardingkey

物件資料分割槽型別:

- range:資料按分割槽鍵值的範圍進行分割槽儲存

- hash:資料按分割槽鍵的雜湊值進行分割槽儲存

version

整型集合版本號,當對集合的元資料執行修改操作時遞增該版本號(例如資料切分)

attribute

整型集合屬性

attributedesc

字串集合屬性描述

compressiontype

整型壓縮演算法型別

compressiontypedesc

字串壓縮演算法型別描述

partition

整型hash 分割槽的個數 ( 僅水平分割槽集合顯示 )

internalv

整型hash 演算法版本號 ( 僅水平分割槽集合顯示,內部使用 )

autosplit

布林集合是否開啟自動切分功能 ( 僅水平分割槽集合顯示 )

ismaincl

布林集合是否為垂直分割槽中的主表 ( 僅垂直分割槽集合顯示 )

mainclname

字串集合在垂直分割槽中所關聯的主表名 ( 僅垂直分割槽集合顯示 )

catainfo.id

整型子表掛載的順序 id ( 內部使用 )

catainfo.subclname

字串子表名 ( 僅垂直分割槽集合顯示 )

catainfo.groupid

整型分割槽組 id

catainfo.groupname

字串分割槽組名

catainfo.lowbound

物件資料分割槽區間的上限

catainfo.upbound

物件資料分割槽區間的下限

autoincrement.field

字串自增欄位名稱

autoincrement.generated

字串自增字段生成方式

autoincrement.sequencename

字串自增字段對應序列名

autoincrement.sequenceid

長整型自增字段對應序列id

1.普通集合

> db.snapshot( sdb_snap_catalog )

, "name": "sample.employee",

"uniqueid": 4294967297,

"version": 1,

"attribute": 1,

"attributedesc": "compressed",

"compressiontype": 1,

"compressiontypedesc": "lzw",

"catainfo": [

]}

copy

2.水平分割槽集合

> db.snapshot( sdb_snap_catalog )

, "name": "sample.employee",

"uniqueid": 261993005057,

"version": 1,

"attribute": 0,

"attributedesc": "",

"autoincrement": [

],"compressiontype": 0,

"replsize": 1,

"shardingkey": ,

"ensureshardingindex": true,

"shardingtype": "hash",

"partition": 4096,

"internalv": 3,

"catainfo": [

},"upbound": }}

] "autosplit": ture,

}

copy

3.垂直分割槽集合

> db.snapshot( sdb_snap_catalog )

"name": "year_2019.month",

"uniqueid": 4294967298,

"attribute": 1,

"attributedesc": "compressed",

"catainfo": [

,"upbound": }],

"compressiontype": 1,

"compressiontypedesc": "lzw",

"ensureshardingindex": true,

"ismaincl": true,

"lobshardingkeyformat": "yyyymmdd",

"shardingkey": ,

"shardingtype": "range",

"version": 2,

}

系統快照

SequoiaDB巨杉資料庫C API

此部分是 c api 相關文件。注意 version 2.10 新增收集資料統計資訊介面 新增修改介面 version 1.10 新增獲取查詢訪問計畫的介面 新增用於大物件 lob 操作的介面 version 1.8 新新增介面 version 1.6 使用 sdbnodehandle 來取代原來的...

SequoiaDB 巨杉資料庫 工具

stpstp 是 stp 提供邏輯時間的可執行程式。引數說明 引數名 縮寫 型別 說明 help h 返回 stp 的用法和幫助 version 返回 stp 的版本資訊 port p int32 1.stp 監聽埠 2.預設值為 9622 3.開啟 tcp 和 udp 協議的監聽 serverli...

SequoiaDB巨杉資料庫 分割槽

分割槽功能用於將一張表的儲存分散到多個物理位置,達到更好的併發讀寫效果。在資料量大時,速度提公升更為明顯。mysql 提供了四種分割槽的方式 range 分割槽 list 分割槽 hash 分割槽和 key 分割槽,同時還支援復合分割槽的方式。復合分割槽中,上層分割槽必須使用 range 或者 li...