Book Image

MariaDb Essentials

Book Image

MariaDb Essentials

Overview of this book

This book will take you through all the nitty-gritty parts of MariaDB, right from the creation of your database all the way to using MariaDB’s advanced features. At the very beginning, we show you the basics, that is, how to install MariaDB. Then, we walk you through the databases and tables of MariaDB, and introduce SQL in MariaDB. You will learn about all the features that have been added in MariaDB but are absent in MySQL. Moving on, you’ll learn to import and export data, views, virtual columns, and dynamic columns in MariaDB. Then, you’ll get to grips with full-text searches and queries in MariaDb. You’ll also be familiarized with the CONNECT storage engine. At the end of the book, you’ll be introduced to the community of MariaDB.
Table of Contents (15 chapters)
MariaDB Essentials
Credits
About the Authors
About the Reviewers
www.PacktPub.com
Preface
Index

Defining a full-text search


Instead of performing a search against the metadata or a part of the original text represented in a database, a full-text search examines all the words of all the documents stored in the database, and tries to match the search criteria.

A full-text search is able to identify natural-language documents that satisfy a query, and optionally to sort them by relevance to the query. This is often used to retrieve all the documents containing a list of terms.

For a large number of documents, it's not possible to examine all documents for every single query. Thus, we create indexes for specific terms that we might probably use as criteria in our future queries. With these indexes, it's faster to find the documents in which the specified terms are used.

With standard text searches, it's not possible to use indexes in most of the SQL databases, and for every query, the database engine has to scan the whole table. That's why full-text searches are useful, even if it's only...