MySQL Tuning for Large Datasets
While there is no silver bullet to keeping your MySQL database running briskly, there are a few performance tweaks that you can do to keep things chugging along when the data starts to pile up. In...
View ArticleQuerying Multiple MySQL Tables
It’s been said that one of the drawbacks to normalization to the third form (3NF) is more cumbersome data extraction due to the greater number of tables. These require careful linking via JOIN...
View ArticleSelecting the Top N Results by Group in MySQL
A common business requirement is to fetch the top N rows of each group, for example, largest cities for each country. Unfortunately many solutions utilize non-MySQL vendor-specific functions. Rob...
View ArticleTop 6 MySQL DBA Mistakes
To err is human, or so the saying goes. Unfortunately, in the world of IT, innocuous mistakes made early on can lead to really daunting problems down the road. In today’s article, we’ll go over a few...
View ArticleListing Duplicate Values by Group
Without question, one of the most common tasks performed by Database Administrators (DBAs) is identifying and weeding out duplicate values in tables. Despite the inordinate number of queries written by...
View ArticleWhy You Should be Using the MySQL GROUP_CONCAT Function
Learn about MySQL’s GROUP_CONCAT function and, more importantly, how it just might change how you work with query result sets forever - especially if your database feeds an application.
View ArticleApplying MySQL’s GROUP_CONCAT Function to Multiple Columns
Rob Gravelle delves into the full syntax of the MySQL GROUP_CONCAT function and provides some guidance on how to use the GROUP_CONCAT function to chain together data from multiple columns in a way...
View ArticlePivot Aggregate Counts on Months in MySQL
A cross tabulation query is used to display the result of an aggregation on two or more fields. The trick to this type of query is the transformation of rows of data to columns. Follow along with Rob...
View ArticleQuerying the WordPress Database
You can easily work with WordPress without ever seeing the database, but should your site grow to a certain level of complexity, you will almost certainly have to get in there. In fact, if you’re...
View ArticleWorking with WordPress Result Sets
Whether you’re fetching a single row or an entire result set, WordPress offers plenty of array types to work with. Read on to learn how to employ WordPress’ $wpdb’s get_row() and get_results() methods.
View ArticleImplement a Secure WordPress Search
Rolling your own search is especially advantageous for WordPress sites that include a lot of custom post types. Rob Gravelle shows you how to build a query that searches by post_title and taxonomy...
View ArticleSpeeding up MySQL Data Imports
Previous articles have described a way to overcome MySQL's import restrictions using the "proc-friendly" Load_File() and ExtractValue() functions. Now it’s time to take a step back and ask ourselves...
View ArticleNavicat 12: An Overview
Navicat Premium 12 is a robust solution that is geared towards DBAs who would benefit from being able to connect to multiple databases simultaneously as well as migrate data between them in a seamless...
View ArticleReal-time MySQL Performance Monitoring
A key part of keeping your MySQL database running smoothly is the regular monitoring of performance metrics. There are literally hundreds of metrics that can be measured that can enable you to gain...
View ArticleSelecting WordPress Metadata
It pays to get a solid handle on how metadata is stored and retrieved in WordPress. In today’s article, we’ll learn how to fetch metadata from the wp_postmeta table using the versatile $wpdb object.
View ArticleTroubleshooting MySQL Performance Issues Using the Slow Log and Performance...
With so many causes and solutions of a database slowdown, you might expect to be spending the night at work, instead of in your warm bed. To avoid that cursed fate, read on to learn two ways to get at...
View ArticleApplying MySQL’s GROUP_CONCAT Function to Multiple Columns
Rob Gravelle delves into the full syntax of the MySQL GROUP_CONCAT function and provides some guidance on how to use the GROUP_CONCAT function to chain together data from multiple columns in a way...
View ArticlePivot Aggregate Counts on Months in MySQL
A cross tabulation query is used to display the result of an aggregation on two or more fields. The trick to this type of query is the transformation of rows of data to columns. Follow along with Rob...
View ArticleQuerying the WordPress Database
You can easily work with WordPress without ever seeing the database, but should your site grow to a certain level of complexity, you will almost certainly have to get in there. In fact, if you’re...
View ArticleWorking with WordPress Result Sets
Whether you’re fetching a single row or an entire result set, WordPress offers plenty of array types to work with. Read on to learn how to employ WordPress’ $wpdb’s get_row() and get_results() methods.
View Article