MySQL 5.6 Views and Stored Procedures Tips
I recently tuned an existing application that used dozens of views and hundreds of stored procedures using MySQL 5.6. There seems to be three attitudes towards using views and stored procedures (SPs)...
View ArticleMySQL Blackhole Storage Engine for Fun and Profit
Recently I did some work with MySQL and MySQL Cluster, where the dev and test environments ran on CloudStack VMs, and a reporting server ran on AWS EC2. The MySQL Blackhole storage engine could have...
View ArticlePercona Clustercheck Improved Error Handling Patch
Here’s my Github pull request for improved error handling in Percona’s clustercheck utility, used by haproxy for health-checking a Percona XtraDB Cluster. It adds two features: 401 Unauthorized...
View ArticlePoor Man’s Profiling with the Linux ts Command
Sometimes when you’re investigating server performance issues, you don’t have the luxury of a full development suite installed with tools like a profiler. It turns out that the linux ts command,...
View ArticleNotes for Installing Percona Xtradb Cluster 5.7 on CentOS 5
Percona supports Percona Xtradb Cluster 5.7 on CentOS 6 and CentOS 7, but not CentOS 5. You can install the RPMs or tarball binary, but on start will see various package dependencies that can’t be...
View ArticlePerl, DBI and MySQL utf8mb4 Character Set Support
MySQL’s modern UTF-8 encoding is named utf8mb4 (4 bytes), not utf8 (3 bytes.) For new applications, especially web, you should start with utf8mb4. For existing applications, you need to decide if an...
View ArticleInternet Latency and Multi-Master Database Transactions
There’s 2 common misconceptions in engineering West Coast – East Coast data centers: that packets travel at the speed of light that database transactions must be 2-phase commit, and two masters cannot...
View ArticlePSA: Intel and AMD Security Bugs and the DBA
There’s at least 4 problems related to the on-going Meltdown and Spectre serious CPU security bugs (AWS announcement) that impact the Database Administrator (DBA): in shared environments, like AWS or...
View ArticleTable Partitions in MySQL and Postgresql
We’re lucky to have two great Open Source databases, MySQL and Postgresql. One of the killer features in both MySQL and Postgresql is table partitions – for example, most Silicon Valley adtech...
View ArticlePostgresql vs MySQL in the Enterprise
There are few people who have used both MySQL and Postgresql in production at scale. Both are great Open Source databases, so I thought I’d add some comments on both based on my experience. Feature...
View Article