"TcaplusDB knowledge base" concept (tables, keys, records, indexes)

   As a NoSQL database, TcaplusDB has a different syntax from traditional SQL relational databases. This article will introduce in detail the concepts and meanings of commonly used terms in TcaplusDB tables, records, and indexes in TcaplusDB.

Term\concept

​ First of all, the terminology comparison between TcaplusDB, SQL database and MongoDB is shown in the following figure:

SQL terms/concepts MongoDB terms/concepts TcaplusDB terms/concepts explain
database database cluster database
table collection tablegroup / table Database table/collection
row document record Data record line/document
column field field Data field/domain
index index index index
primary key primary key primary key Primary key, MongoDB automatically sets the _id field as the primary key
TcaplusDB syntax comparison

table

   The TcaplusDB table consists of two parts: primary key fields and non-primary key fields. Up to 8 primary key fields can be specified, and up to 256 common fields (non-common fields) can be specified.
Insert picture description here

TcaplusDB primary key field diagram

recording

   TcaplusDB records consist of a line of strings. The numbers in each field support nesting types, with a maximum of 32 levels of nesting. The maximum size of a single record is 10MB, and commonly used object files can be serialized into binary files for storage.

Insert picture description here

The difference between TcaplusDB regular records and large records

index

   TcaplusDB supports two indexes: local index and distributed index. Local indexes need to be specified when the table is created. Distributed indexes support modification at any time. You can specify either primary key fields or common fields. Indexes are widely used in scenarios such as conditional query, fuzzy matching, and range search.

Insert picture description here

Two indexes supported by TcaplusDB

   Want to know more about TcaplusDB related technical issues?

   Our community: https://tcaplusdb.tencent.com/

   Rich technology and product event sharing awaits you.

   Welcome!


TcaplusDB is a distributed NoSQL database produced by Tencent. The code for storage and scheduling is completely self-developed. It has the characteristics of cache + landing fusion architecture, PB-level storage, millisecond-level latency, lossless horizontal expansion, and complex data structure. At the same time, it has the characteristics of rich ecology, convenient migration, extremely low operation and maintenance cost and five nine high availability. Customers cover gaming, Internet, government affairs, finance, manufacturing, and the Internet of Things.

Guess you like

Origin blog.csdn.net/weixin_44545651/article/details/114028325