JSON has become the standard document interchange format over the
last several years. MySQL 5.7 added a native JSON data type
and it has been greatly enhanced with version 8.0.
But many in the relational world have complained the the NoSQL
approach does not allow you to have rigor on your data. That is
to make sure an integer value is really an integer and within
specified ranges or string of the proper length. And there was no
way to make sure that email addresses are not listed under a
combination of E-mail, e-mail, eMail, and eMAIL. JSON is
great for many things but traditional, normalized data was better
for making certain that your data matched what was
specified.
If only there was a way to enforce come rigor on JSON data! Or a
way to annotate (pronounced 'document') your JSON data. Well
there is. MySQL 8.0.17 has added the ability to validate JSON
documents against a schema following the guidelines of the …
MySQL 8.0.17 adds three new functions to the JSON
repertoire. All three can take advantage of the new
Multi-Value Index feature or can be used on JSON arrays.
JSON_CONTAINS(target, candiate[,
path])
This function indicates with a 1 or 0 if a candidate
document is contained in the target document. The optional
path argument lets you seek information in embedded
documents. And please note the 'haystack' is before the
'needle' for this function.
mysql> SELECT JSON_CONTAINS('{"Moe": 1, "Larry":
2}','{"Moe": 1}');
+------------------------------------------------------+
| JSON_CONTAINS('{"Moe": 1, "Larry": 2}','{"Moe": 1}') |
+------------------------------------------------------+
…
Create a MySQL InnoDB Cluster using MySQL 8.0 has always been very easy. Certainly thanks to MySQL Shell and server enhancements like SET PERSIST and RESTART statement (see this post).
The most complicated part to deal with was the existing and none existing data. In fact GTID sets must be compatible.
Let me explain that with some examples:
Example 1 – empty servers
If you have empty servers with GTID enabled, manually creating credentials to connect to each MySQL instances will generate GTIDs that will prevent nodes to …
[Read more]The MySQL Development Team is very excited and proud of what was achieved in this 8.0.17 GA release!
The spotlight is on… A game-changer feature – Automatic Node provisioning!
This has been an extremely desired and important feature, and it has been accomplished, once again, with tight integration and cooperation of MySQL Components:
- The new MySQL Clone Plugin: To take a physical snapshot of the database and transfer it over the network to provision a server, all integrated into the server, using regular MySQL connections.
… Tweet Google Plus Share
The MySQL Development Team is very excited and proud to announce a new 8.0 Maintenance Release of InnoDB Cluster – 8.0.17!
In addition to important bug fixes and improvements, 8.0.17 brings a game-changer feature!
This blog post will cover MySQL Shell and the AdminAPI, for detailed information of what’s new in MySQL Router stay tuned for an upcoming blog post!…
Facebook Twitter LinkedIn
The MySQL Development team is proud to announce a new version of the MySQL Shell in which the following new features can be highlighted:
- MySQL Shell Plugins
- Parallel table import
- In InnoDB Cluster:
- Automatic instance provisioning through cloning
- Automatic server version compatibility handling
- Simplification of internal recovery accounts
The following enhancements were also introduced:
- On the X DevAPI area:
- Support for array indexes in collections
- Support for overlaps operator in expressions
- Uniform SQL execution API in classic and X protocol
- Support for connection attributes
- New utility functions:
- shell.unparseUri(…)
- shell.dumpRows(…)
…
The MySQL Development team is very happy to announce that MySQL 8.0.17 is now available for download at dev.mysql.com. In addition to bug fixes there are a few new features added in this release. Please download 8.0.17 from dev.mysql.com or from the MySQL Yum, APT, or SUSE repositories.…
Facebook Twitter LinkedIn
Mydbops continues with its commitment to the open source community comprising of Database Administrators. After the successful conduct of three meet-ups in the past, we are now stepping ahead on to the 4th edition of Mydbops Database meet-up.
First time, we are going to the new venue, thanks to the kind people of Zenefits Technologies India Pvt.Ltd., It is a real pleasure to be hosted by the like-minded organisation in the city of Bangalore, scheduled on Saturday, 3rd of August, 2019 at Zenefits Office.
In the past three editions, the focus was on the latest and hands-on topics by the selected speakers from the DBA World. This focus gets sharper this time as well. The topics for the 4 th Mydbops Database Meetup are:
InnoDB scalability improvements in MySQL 8.0 – Mr. Karthik P R, Founder / CEO of Mydbops, a MIT Masters …
[Read more]Overview The Skinny
Part of the power of Tungsten Clustering for MySQL / MariaDB is its intelligent MySQL Proxy, known as the Tungsten Connector. Tungsten Connector has three main modes, and depending on the type of operations you are performing (such as if you need read-write splitting), we help you choose which mode is best.
The Question Recently, a customer asked us:
How can I tell which Tungsten Connector mode I am using: Bridge, Proxy/Direct or Proxy/SmartScale?
The Answer Connect and Observe
You may login through the Connector to tell the difference between Bridge mode and Proxy mode (either Direct or SmartScale):
In Proxy mode, you will see the -tungsten tag
appended to the Server version string:
…[Read more]
See part one of this series here.
This post is part two of my series “Assessing MySQL Performance Amongst AWS Options”, taking a look at how current Amazon RDS services – Amazon Aurora and Amazon RDS for MySQL – compare with Percona Server with InnoDB and RocksDB engines on EC2 instances. This time around, I am reviewing the total cost of one test run for each database as well as seeing which databases are the most efficient.
First, a quick recap of the evaluation scenario:
The benchmark scripts
For these evaluations, we use the sysbench/tpcc LUA test with a scale factor of 500 warehouses/10 tables. This is the equivalent of 5000 warehouses of the official TPC-C …
[Read more]