Skip to content

Commit 08ee61a

Browse files
authored
blogs: mysql vs mariadb (update) - json (#456)
Comparing MariaDB json functions to MySQL * https://mariadb.com/kb/en/json-functions/ * https://dev.mysql.com/doc/refman/9.1/en/json-function-reference.html There are 4 functions that MariaDB doesn't have that MySQL has being JSON_STORAGE_FREE(), JSON_STORAGE_SIZE(), both unimportant due to MariaDB storing as text, and: * JSON_SCHEMA_VALIDATION_REPORT * MEMBER OF(). A look at what MariaDB functions exist that MySQL does not have is: * JSON_ARRAYAGG * JSON_COMPACT * JSON_DETAILED * JSON_EQUALS * JSON_EXISTS * JSON_KEY_VALUE * JSON_NORMALIZE * JSON_OBJECT_FILTER_KEYS * JSON_OBJECT_TO_ARRAY * JSON_OBJECTAGG Its a bit hard to argue MariaDB JSON functionality is behind MySQL based on this concrete comparison of features.
1 parent 5078b7f commit 08ee61a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

content/blog/mysql-vs-mariadb.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ MariaDB still relies on the older `.frm` file-based system for table definitions
5959

6060
MySQL has developed robust, native JSON support starting with MySQL 5.7. This includes JSON data types, JSON functions, and indexing mechanisms to efficiently store, query, and manipulate JSON data.
6161

62-
MariaDB can store JSON-like data using standard text fields or its dynamic columns feature, but it lacks the fully integrated JSON support and functions that MySQL offers.
62+
MariaDB can store JSON data using standard text fields or its dynamic columns feature, but doesn't support MySQL's `->` or `->>` syntax. MariaDB was original behind in JSON functions on offer, but has since offering a comparable set of functions.
6363

6464
### InnoDB Cluster and Group Replication:
6565

@@ -144,6 +144,8 @@ Updated 2024/10/05 - It was noted that MariaDB has had Atomic DDL since MariaDB
144144

145145
![change-query-secure-govern-database-all-in-one](/images/db-scheme-lg.png)
146146

147+
Updated 2024/10/05 - It was noted that MariaDB has equal or better set of JSON functions that MySQL.
148+
147149
## Other Comparisons
148150

149151
- [MySQL vs. Postgres](/blog/postgres-vs-mysql)

0 commit comments

Comments
 (0)