Database Selection Reference

Database Selection Reference

At present, the requirements for game programs are higher than ever. Online games start with only a few users and very little data. However, if the game is successful, it can easily exceed the resources of the basic database management system, which is not uncommon. The game program’s database must handle tens of thousands or hundreds of thousands of reads and writes per second. TcaplusDB is ideal for these types of workloads. As a developer, you want to start with a low cost and gradually increase capacity as game programs gain popularity. TcaplusDB can be seamlessly extended to handle large amounts of data and users. The following table describes some of the key features of TcaplusDB.

FeatureTcaplusDB
Data persistenceSupport persistence to SSD
System capacity expansion and shrinkageSupport lossless capacity expansion and shrinkage without affecting users
System upgradeSupport lossless upgrade without affecting users
FeatureTcaplusDB
QPSQPS of 10-million-level for a single table
Storage capacityPB-level single table
Delay5ms delay
FeatureTcaplusDB
RollbackRollback accurate to second level, supporting table level and record level
BackupIncremental backup and full backup
Synchronization and subscriptionSupport synchronization to mysql, kafka, etc
Read SplitSupport
FeatureTcaplusDB
Data structureTwo-dimensional table with multiple keys and values and support for lists, nesting, and other structures.
Database and table splittingSupport horizontal expansion, without database and table splitting
Local IndexSupport local indexes and partial key queries based on full keys and splittable keys
Secondary indexSupport global secondary indexes, where the secondary indexes and master data are asynchronously synchronized, with millisecond level consistency differences
Multilingual SDKC++, GO, java, python, RESTful API, etc
MySQL Protocol Compatibility](../05TcaplusDB_SDK_and_API/01TDR_Table_SDK_and_API/04MySQL_Protocol_Compatibility_Interface/00README.md)Support mySQL driver access
Asynchronous accessSupport
Synchronous accessSupport
Batch Read/WriteSupport
Multi-table associated queryDo not support
Single table complex queryPartial support after enabling the secondary index
Conditional filteringSupport value field filtering when the key is determined
ConsistencyAdopt master/slave architecture, finally achieve consistency
Transactions across rows and tablesDo not support
Read/write protectionSupport
Record Version NumberSupport
TTLSupport

5. System Limitations

ItemLimitation
Number of Apps that can be created in a cluster510 maximum
Number of game zones (zones, table groups) that can be created in a single app2048 maximum
Number of tables that can be created in a single game zone (zone, table group)256 maximum
Length of data table name32 B maximum
Number of primary key fields that can be specified in a single table8 maximum (The built-in index field in the List table occupies one primary key field, and the actual number of primary key fields that can be specified by the user is 7)
Number of regular fields (non-primary key fields) that can be defined in a single table256 maximum
Number of local indexes that can be defined for a single table8 maximum
Length of data table field name32 B maximum
Number of index fields that can be specified by a single local index8 maximum
The size of a single primary key field value for a single piece of data1 KB maximum
The total size of all primary key field values for a single piece of data8 KB maximum (The size of all primary key fields in a PB table, the total length of which cannot exceed 1022B after serialization)
The size of a single regular field value for a single piece of data10 MB maximum
The total size of all regular field values of a single piece of data10 MB maximum
Number of elements in a single list in the List table10000 maximum
The size of a single data shard256 G maximum
Number of data shards in a single table10000 maximum
Modify table - Add fieldsSupport adding regular fields
Modify table - Delete fieldsDo not support at present
Modify table - Add/delete local indexesDo not support at present
Number of data that can be returned by a single global index query3000 maximum