You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/glossary.md
+6Lines changed: 6 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,6 +12,12 @@ A pair of keys used for cryptographic purposes, consisting of a private key and
12
12
13
13
Atomicity means that database operations are applied following a “all or nothing” rule. A transaction is either fully applied or not at all.
14
14
15
+
## Atomic DDL (Data Definition Language)
16
+
17
+
Atomic DDL refers to the concept where DDL operations such as `CREATE`, `ALTER`, `DROP`, or `RENAME` statements are executed in a way that ensures atomicity, meaning they either fully succeed or have no effect at all.
18
+
19
+
This means that if a DDL statement fails, the database automatically rolls back any partial changes, leaving the schema in a consistent state.
20
+
15
21
## Consistency
16
22
17
23
Consistency means that each transaction that modifies the database takes it from one consistent state to another.
Copy file name to clipboardExpand all lines: docs/limitations.md
+17-16Lines changed: 17 additions & 16 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
3
3
## Online DDL limitations
4
4
5
-
MyRocks has limited support for [Online DDL operations](https://dev.mysql.com/doc/refman/8.0/en/innodb-online-ddl.html) due to the lack of atomic DDL. As a result the schema changes are more restricted compared to InnoDB.
5
+
MyRocks has limited support for [Online DDL operations](https://dev.mysql.com/doc/refman/{{vers}}/en/innodb-online-ddl.html) due to the lack of [atomic DDL](./glossary.md#atomic-ddl-data-definition-language). As a result the schema changes are more restricted compared to InnoDB.
6
6
7
7
### Traditional MyRocks DDL behavior
8
8
@@ -12,7 +12,7 @@ MyRocks has limited support for [Online DDL operations](https://dev.mysql.com/do
| Metadata changes |`RENAME TABLE`, some `RENAME COLUMN` operations | May be `INSTANT`|
14
14
15
-
**Note:** MyRocks does not support atomic DDL. Even metadata-only operations may require a full table rebuild, depending on the nature of the change.
15
+
**Note:** MyRocks does not support [atomic DDL](./glossary.md#atomic-ddl-data-definition-language). Even metadata-only operations may require a full table rebuild, depending on the nature of the change.
16
16
17
17
### Partition management support
18
18
@@ -22,27 +22,26 @@ As of `Percona Server for MySQL 8.0.25-15`, MyRocks supports `INPLACE` partition
22
22
ALTERTABLE t1 DROP PARTITION p1, ALGORITHM=INPLACE;
23
23
ALTERTABLE t1 ADD PARTITION (PARTITION p2 VALUES LESS THAN (MAXVALUE)), ALGORITHM=INPLACE;
24
24
```
25
-
The aforementioned operations no longer require a full table rebuild. However, operations that modify partitioning schemes, such as changing `VALUES LESS THAN`, still fall back to the `COPY` algorithm.
25
+
These operations no longer require a full table rebuild. However, operations that modify partitioning schemes, such as changing `VALUES LESS THAN`, still fall back to the `COPY` algorithm.
26
26
27
27
**Note:** Dropping a partition permanently deletes any data stored in it unless that data is reassigned to another partition.
28
28
29
29
### Instant DDL support
30
30
31
-
As of `Percona Server for MySQL 8.0.42-33`, MyRocks introduces limited support for InstantDDL, which is disabled by default and controlled via configuration variables.
31
+
As of `Percona Server for MySQL 8.0.42-33`, MyRocks provides limited InstantDDL support that is disabled by default, and you can activate the specific instant operations you need by setting the appropriate configuration variables.
32
32
33
-
To enable specific types of instant operations, use the following configuration options:
33
+
| Configuration variable | Enables Instant DDL for |
|[`rocksdb_enable_instant_ddl_for_drop_index_changes=ON`](variables.md#rocksdb_enable_instant_ddl_for_drop_index_changes)|`ALTER TABLE ... DROP INDEX`|
|[`rocksdb_enable_instant_ddl_for_drop_index_changes=ON`](variables.md#rocksdb_enable_instant_ddl_for_drop_index_changes)|`ALTER TABLE ... DROP INDEX`|`ALGORITHM=INSTANT`|
0 commit comments