Skip to content

Commit

Permalink
docs(limits): update the docs(#1367)
Browse files Browse the repository at this point in the history
Some restrictive features have been developed
  • Loading branch information
Nliver committed Mar 8, 2023
1 parent a294a9c commit 3e38df5
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 32 deletions.
27 changes: 12 additions & 15 deletions Docs/00-about-stonedb/limits.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,37 +6,34 @@ sidebar_position: 1.3
# Limits

Developed based on MySQL, StoneDB is compatible with the MySQL 5.6 and 5.7 protocols, and the ecosystem, common features, and common syntaxes of MySQL. However, due to characteristics of StoneDB, the following MySQL operations and features are not supported.
## Unsupported DDL operations
# Unsupported DDL operations
StoneDB does not support the following DDL operations:

- Optimize a table.
- Analyze a table.
- Repair a table.
- Lock a table.
- Add a unique constraint.
- Delete a unique constraint.
- Create an index.
- Drop an index.
## Joins across storage engines not supported
- Create foreign key
- Drop foreign key
# Joins across storage engines not supported
By default, StoneDB does not support joins across storage engines. If a join involves tables in both other storage engines and StoneDB, an error will be reported. You can set the **tianmu_ini_allowmysqlquerypath** parameter to **1** in the **my.cnf** configuration file to remove this limit.
## Unsupported objects
# Unsupported objects
StoneDB does not support the following objects:

- Full text index
- Unique constraints
- Secondary index
- Foreign key
## Unsupported data types
# Unsupported data types
StoneDB does not support the following data types:

- `enum`
- `set`
- `json`
- enum
- set
- json
- decimal whose precision is higher than 18, for example, decimal(19,x)
## Transactions not supported
# Transactions not supported
Transactions must strictly comply with the ACID attributes. However, StoneDB does not support redo and undo logs and thus does not support transactions.
## Partitions not supported
# Partitions not supported
Column-based storage engines do not support partitioning.
## Row locks and table locks not supported
# Row locks and table locks not supported
Column-based storage engines do not support row locks or table locks.

Original file line number Diff line number Diff line change
Expand Up @@ -5,30 +5,35 @@ sidebar_position: 1.3

# 使用限制
StoneDB 100% 兼容 MySQL 5.6、5.7 协议和 MySQL 生态等重要特性,支持 MySQL 常用的功能及语法,但由于 StoneDB 本身的一些特性,部分操作和功能尚未得到支持,以下列出的是不兼容 MySQL 的操作和功能。
## 不支持的DDL

# 不支持的DDL
1. optimize table
2. analyze table
3. repair table
4. lock table
5. 添加唯一约束
6. 删除唯一约束
7. 创建索引
8. 删除索引
## 不支持跨存储引擎关联查询
StoneDB 默认不支持跨存储引擎关联查询,也就是说其他存储引擎下的表和 `StoneDB` 下的表进行关联查询会报错。可在参数文件 `my.cnf` 里定义 `tianmu_ini_allowmysqlquerypath=1`,这样就支持跨存储引擎表之间的关联查询了。
## 不支持的对象
5. 创建外键
6. 删除外键

# 不支持跨存储引擎关联查询
StoneDB 默认不支持跨存储引擎关联查询,也就是说其他存储引擎下的表和 StoneDB 下的表进行关联查询会报错。可在参数文件 my.cnf 里定义 tianmu_ini_allowmysqlquerypath=1,这样就支持跨存储引擎表之间的关联查询了。

# 不支持的对象
1. 全文索引
2. 唯一约束
3. 二级索引
4. 外键
## 不支持的数据类型
1. 枚举型 `enum`
2. 集合型 `set`
3. `json` 类型
4. `decimal` 精度必须小于或等于18,否则不支持,如 decimal(19,x)
## 不支持事务

# 不支持的数据类型
1. 枚举型 enum
2. 集合型 set
3. json 类型
4. decimal 精度必须小于或等于18,否则不支持,如 decimal(19,x)

# 不支持事务
只有严格遵守 ACID 四大属性,才能真正的支持事务。而 StoneDB 由于没有 redo 和 undo,是不支持事务的。
## 不支持分区

# 不支持分区
列式存储不支持分区。
## 不支持行锁、表锁
列式存储不支持行锁、表锁。

# 不支持行锁、表锁
列式存储不支持行锁、表锁。

0 comments on commit 3e38df5

Please sign in to comment.