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/filter-audit-log-filter-files.md
+140-3
Original file line number
Diff line number
Diff line change
@@ -43,7 +43,144 @@ The default account is represented by `%` as the account name.
43
43
44
44
You can assign filters to a specific user account or disassociate a user account from a filter. To disassociate a user account, either unassign a filter or assign a different filter. If you remove a filter, that filter is unassigned from all users, including current users in current sessions.
Copy file name to clipboardexpand all lines: docs/json-overview.md
+64-3
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,67 @@
1
-
# JSON in MySQL
1
+
# JSON in Percona Server for MySQL
2
+
3
+
JSON stands for JavaScript Object Notation. It is a lightweight data-interchange format that is easy for humans to read and write. It is also easy for machines to parse and generate. Percona Server for MySQL supports JSON data type, allowing you to store JSON documents in your database.
4
+
5
+
The JSON data type in Percona Server for MySQL is a handy way to store and work with flexible, semi-structured data right in your database. Think of it as a way to save JSON objects directly into your tables, so you don’t have to convert them into a rigid format.
6
+
7
+
When you use the JSON data type, the database stores your data in a special binary format that’s optimized for speed and space which is faster and more efficient than just saving JSON as plain text.
8
+
9
+
The JSON data type is great when your data doesn’t fit into a fixed structure or if it’s likely to change over time. The following are examples of when you would use the JSON data type:
10
+
11
+
* Storing user preferences or settings.
12
+
13
+
* Capturing logs or other dynamic data.
14
+
15
+
* Handling complex objects without adding a ton of columns to your table.
| Validation Built-In | Percona Server checks your JSON data when you insert or update it to make sure it’s valid. If something’s wrong, you’ll know right away. |
38
+
| Powerful Querying | You can dig into specific parts of your JSON data using built-in functions like the following: <br> - `JSON_EXTRACT()` to pull out specific keys or values. <br> - `JSON_CONTAINS()` to check if a key or value exists. <br> - `JSON_SET()` to update parts of your JSON object without replacing the whole thing. |
39
+
| Indexing for Speed | If you often query a particular key inside your JSON, you can create a generated column based on that key and index it, making queries much faster. |
40
+
41
+
## Use JSON in your database
42
+
43
+
The following is an example using JSON in your database.
* You can use `JSON_EXTRACT()` to get the value of a specific key, like theme.
2
63
3
-
JSON stands for JavaScript Object Notation. It is a lightweight data-interchange format that is easy for humans to read and write. It is also easy for machines to parse and generate. MySQL supports JSON data type, allowing you to store JSON documents in your database.
64
+
JSON in Percona Server for MySQL gives you have the flexibility of NoSQL with the reliability and querying power of a relational database.
4
65
5
66
## Create a table with JSON Data Type
6
67
@@ -81,7 +142,7 @@ WHERE name = 'John Doe';
81
142
82
143
## Use JSON Functions
83
144
84
-
MySQL provides several functions to work with JSON data.
145
+
Percona Server for MySQL provides several functions to work with JSON data.
0 commit comments