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 |
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.
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.
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.
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.