;

Posts tagged " MySQL 8 "

MySQL Document Store: Everything you need to know about it

Posted by MySQL NEWS No Comment yet

Databases make an essential part in the online operations for enterprises. Depending upon the type of data that is required to be managed by enterprises, one has to choose among the different types of databases. Whether to use a SQL database or a NoSQL database completely depends upon the data that has to be stored, but sometimes there is a curious case of needing both the types of database simultaneously for the enterprise data management.

Well, in that case, MySQL Document Store comes to your rescue. This clearly optimizes your database resource use and cost by letting you enjoy both SQL and NoSQL database under a single Database Management System. MySQL Document Store enables you to work with SQL Relational Tables at the same time you can also work with schema-less JSON collections.

With MySQL Document Store you can use both the kinds of data without the need of having a separate NoSQL document database management system. This entitles you to avail maximum flexibility where you are free to mix and match relational data and JSON documents within the same application by using a single database. You can query the data models in the same application and fetch the results in the form of JSON or table formats.

MySQL Document Store does all of this using its X Dev API that focuses on CRUD (Create, Read, Update and Delete). It provides you with a fluent API where you can work with JSON formats seamlessly. It is the X protocol that is highly extensible and optimized for both CRUD as well as SQL API operations letting you get the best of both the worlds together on a single platform.

Architecture of MySQL Document Store

Let us understand how MySQL Document Store is capable of doing all this by shedding some light on its architecture and getting an insight into its components.MySQL Document Store consists of the following components:

ericvanier.com mysql architecture

Source: MySQL Document Store Documentation

  • Native JSON Document Storage

With a native JSON data type storage in binary, MySQL also provides the ability to create virtual columns. These columns can be indexed. JSON documents in a MySQL Document Store can be automatically validated.

  • X Plugin

MySQL Document Store has X Plugin that enables it to use X Protocol. It uses Connectors and the Shell to act as clients to the server.

  • X Protocol

It is a new client protocol that is based on the Protobuf library. The X Protocol works for both CRUD and SQL that makes it the foundationl for the dual operations.

  • X DevAPI

On top of the X Protocol, it is X DevAPI, which is a modern, new async developer API meant for the CRUD and SQL operations. The X DevAPI introduces the Collections as new Schema objects. The documents are stored in the Collections which have their dedicated CRUD operation set.

  • MySQL Shell

It is an interactive JavaScript, Python or SQL interface that supports the development and administration of MySQL server. MySQL Shell can be used for performing data queries, updates and various other administration operations on the database.

  • MySQL Connectors

Here are the MySQL Connectors that support X Protocol and allows you to use X DevAPI in the language you choose:

  • MySQL Connector/Node.js
  • MySQL Connector/PHP
  • MySQL Connector/Python
  • MySQL Connector/J
  • MySQL Connector/NET
  • MySQL Connector/C++

The Next Step

Apart from the flexibility and the optimization which the MySQL Document Store offers you, some of the other benefits of using MySQL Document Store are its high reliability, compliance, high availability, online hot backup, security, ease of use, reports, and analytics.

Given the extensive benefits that the MySQL Document Store has to offer you, it is very important that the Database Administrator uses it in the best possible manner for the optimization.

Having a diligent DBA for your enterprise database would help you in many ways to ensure the high performance of your database. As a result, your online operations will be much more efficient than ever.

ericvanier.com mysql dba

If you are looking forward to improving your enterprise database by hiring a diligent professional DBA who specializes in optimization, then maybe I could help you with this.

Being a DBA professional with an industry experience of over a decade, I would be obliged to help you in the optimization of your enterprise database.

Get in touch to find the best optimization solutions for your enterprise database.

Top New features added in MySQL 8.0

Posted by MySQL NEWS No Comment yet


Source: Wikipedia

A database has been a necessity for enterprises from the time immemorial. Especially after the enterprises have started moving their operations from offline to online platforms, the need for a highly robust and well-performing database is very significant. Enterprises often choose a database which they can rely upon, that would not cause any slowdowns and would provide easy access to the data.

For the enterprises choosing database makes it very important for their better operational performance which very much depends on the data access. Thereby, the database performance plays a vital role in the operations of your enterprise, which is why it is most often observed that database optimization is regularly practiced to keep up the high performance.

MySQL is one of the most used and likely recommended SQL enterprise database which is used to manage structured data by many enterprises globally. With its robust performance and constant evolution to match up the rapidly growing demands in the IT, MySQL has been successfully able to cater to the database requirements.

With the latest version MySQL 8.0, it has introduced some new features targeting to achieve better DB performance in enterprise database management at scale. In this article, we would explore what these new features introduced in MySQL 8.0 are and how would they affect the overall database performance. Also, in the end, we would discuss the possible way ahead and planning required for enhanced database optimization.

New Features introduced in MySQL 8.0

With the addition of these new features in MySQL 8.0, the main aim of improving database performance to optimize the operational performance of the enterprises has been successfully fulfilled to a major extent. Some of the foremost new features added in MySQL 8.0 are:

  • Atomic DDL

MySQL 8.0, supports Atomic Data Definition Language (DDL) statements as a new feature. With Atomic DDL statement, data dictionary updates, storage engine operations, and binary log writes, that are associated with the DDL operations are combined into a single atomic transaction. This is due to the data dictionary which is now transactional in MySQL 8.0, unlike the previous versions where it was stored as metadata.

Source: MySQL 8.0 Reference Manual

An Atomic DDL ensures that the transactional changes are either implemented in the data dictionary, storage engine and binary log or rolls back, even in a case when the server halts amidst the operation.

This has enhanced the database performance with the crash-free DDL, where either all the updates to the Data Dictionary happens or gets rolled back, making it crash-free.

  • InnoDB enhancements

MySQL 8.0 has also introduced InnoDB enhancements which are meant to improve the database performance. InnoDB is a general-purpose storage engine which offers high reliability and high performance both at the same time. It aims to protect the user data in maximum capacity by practicing transactions with commit, rollback, and crash-recovery capabilities.

It also ensures data integrity by supporting foreign key constraints, where the foreign keys updates, inserts, and deletes are checked to avoid any form inconsistencies or discrepancies in the data.

It has also helped in database optimization by optimizing queries that are based on the primary keys, by minimizing I/O for primary lookups with the help of clustered index which organizes the primary key data.

InnoDB has been successful in enhancing reliability in terms of rollback, crash-recovery options, and data integrity, at the same time, improving the database performance by making it crash-free and optimizing queries.

  • User Role Management

To ensure enhanced security of the database, user role management is now supported with the MySQL 8.0. Now users can be assigned different roles which can be altered or revoked during the sessions of the user account. These roles define the access to the users helping DBAs to maintain the security of the database efficiently.

The way ahead

MySQL 8.0 has made some promising feature updates for improved database performance and to enhance database optimization. But to leverage the benefits of these new features added in MySQL 8.0, it is very important to know that only a diligent DBA with an apt understanding of Advanced MySQL 8.0 is required.

To keep up the high performance of the database it is important to persevere with the latest updates for the database optimization. As a DBA with a vast experience of over two decades, I have incorporated the exploratory strategies along with my co-authors in my book Advanced MySQL 8.0 to equip fellow DBAs for the way ahead.

As an enterprise, if you are looking forward to optimizing your database and require expert consultation, then feel free to contact me and I shall be happy to provide the right consultation required to enhance the performance of your enterprise database management system.

EnglishFrench