Book Image

MySQL 8 for Big Data

By : Shabbir Challawala, Chintan Mehta, Kandarp Patel, Jaydip Lakhatariya
Book Image

MySQL 8 for Big Data

By: Shabbir Challawala, Chintan Mehta, Kandarp Patel, Jaydip Lakhatariya

Overview of this book

With organizations handling large amounts of data on a regular basis, MySQL has become a popular solution to handle this structured Big Data. In this book, you will see how DBAs can use MySQL 8 to handle billions of records, and load and retrieve data with performance comparable or superior to commercial DB solutions with higher costs. Many organizations today depend on MySQL for their websites and a Big Data solution for their data archiving, storage, and analysis needs. However, integrating them can be challenging. This book will show you how to implement a successful Big Data strategy with Apache Hadoop and MySQL 8. It will cover real-time use case scenario to explain integration and achieve Big Data solutions using technologies such as Apache Hadoop, Apache Sqoop, and MySQL Applier. Also, the book includes case studies on Apache Sqoop and real-time event processing. By the end of this book, you will know how to efficiently use MySQL 8 to manage data for your Big Data applications.
Table of Contents (17 chapters)
Title Page
Credits
About the Authors
About the Reviewers
www.PacktPub.com
Customer Feedback
Preface

Analyzing data stored in Memcached


It's time to get our hands dirty by playing with the Memcached interface. An InnoDB table entry should be there in the containers table of the Memcached database to use this table through the Memcached interface. By default, while installing Memcached, a demo_test table is automatically created under the test database and the same table entry is inserted into the containers table. Let's define the new mapping and perform a few operations. I am getting eager to get to the next section!

I have created a student_result table to store students' results data with the following query:

mysql> CREATE TABLE student_result (
 student_id INT PRIMARY KEY,
 student_name VARCHAR(20),
 maths INT,
 english INT,
 history INT,
 flags INT,
 cas BIGINT UNSIGNED,
 expiry INT);

Mapping of the student_result table can be done by inserting an entry into the containers table as follows:

mysql> INSERT INTO innodb_memcache.containers
 (name, db_schema, db_table, key_columns, value_columns...