You are here

MySQL Performance Blog

MySQL Performance Blog
Checked: 2 hours 25 min ago
Updated: 2 hours 25 min ago
Update every: 2 hours

Subscribe to MySQL Performance Blog

MySQL Support or Support for MySQL ? MySQL Trademark Policies

MySQL Performance Blog - Fri, 26/10/2007 - 8:39pm

What is the difference between “MySQL Support” and “Support for MySQL” ?
In my mind there is not much difference in meaning just first one is shorter and I would use it also because how people would search stuff in Google.

MySQL Performance Blog gets new server.

MySQL Performance Blog - Fri, 26/10/2007 - 8:15pm

Try number two. We have moved to the new server yet again, now it is server hosted by ServerBeach as recommended by Kevin Burton and few other guys.

Lets hope this will run stable and we’ll not need to move it back in emergency in less than a week as we had to last time.

Up to this point it all was running pretty well, with only minor issues. We got CentOS 5 on the box as we wanted, however we could not request custom partitioning - I really prefer to keep all important data on LVM volume so it is easy to backup.

MySQL Users Conference Presentation Proposals

MySQL Performance Blog - Wed, 24/10/2007 - 5:33pm

OK, I am not getting too much people feedback on what would they like to hear about on MySQL Users Conference, so I went ahead and submitted few presentation ideas.

I do not expect all of them would be accepted, furthermore it would be hard to prepare so many good presentations if they are so please let me know if anything of this is of special interest for you. When I would be able to show that to organizers to help with decision.

Progress with ClickAider project

MySQL Performance Blog - Wed, 24/10/2007 - 3:08pm

About three months ago I announced ClickAider to become available to general public. And I think it is about the time to write about the progress we have with this project for those who interested.

Making bugs public - good job MySQL

MySQL Performance Blog - Mon, 22/10/2007 - 11:11pm

If you have been MySQL User for many years you might remember the times when MySQL had “zero bugs policy”, this is when all known bugs really were fixed before release was made. To be honest at that time bugs were reported via bugs mailing list not via bugs database as they are now so they were not tracked so accurately but still there was intention and all known serious bugs were fixed before release was made.

What would you like to hear about on MySQL Users Conference 2008 ?

MySQL Performance Blog - Mon, 22/10/2007 - 4:25pm

It is submission time now, with about one week left till proposal submission deadline. Both me and Vadim had submitted few talks to the Grand Jury which will make elite selection of sessions for MySQL Users Conference and we plan to submit few more.

Traffic Tricks by Hosting Providers.

MySQL Performance Blog - Wed, 17/10/2007 - 9:20pm

I already wrote once about hosting troubles which we had with this site a while back. Today we had another trouble to one of the European hit servers for ClickAider project.

MySQL Performance - eliminating ORDER BY function

MySQL Performance Blog - Wed, 17/10/2007 - 12:24pm

One of the first rules you would learn about MySQL Performance Optimization is to avoid using functions when comparing constants or order by. Ie use indexed_col=N is good. function(indexed_col)=N is bad because MySQL Typically will be unable to use index on the column even if function is very simple such as arithmetic operation. Same can apply to order by, if you would like that to use the index for sorting. There are however some interesting exception.

MySQL Northern European Customer Conference

MySQL Performance Blog - Wed, 17/10/2007 - 11:18am

Yesterday I’ve attended MySQL Customers Conference in London. This event is much smaller size than Users Conference (one day and about 170 people attending) and surely less geeky - there were no one from MySQL Development Support or Consulting teams and Sales Engineers were as close as you could get. Though Anders Karlsson and Ivan Zoratti are one of the best of the kind being more technical than quite a few of the teams mentioned.

Be careful when joining on CONCAT

MySQL Performance Blog - Tue, 16/10/2007 - 9:32pm

The other day I had a case with an awful performance of a rather simple join. It was a join on tb1.vid = CONCAT('prefix-', with tb1.vid - indexed varchar(100) and - int(11) column. No matter what I did - forced it to use key, forced a different join order, it did not want to use tb1.vid index for it. And no surprise it was way too slow, the number of rows analyzed was really huge:

Managing Slave Lag with MySQL Replication

MySQL Performance Blog - Fri, 12/10/2007 - 7:18pm

The question I often get is how far MySQL may fall behind and how to keep replication from lagging.

The lag you will see will vary a lot from application to the application and from load to load. Plus what is the most important within same application the lag will likely have spikes - most of applications would have typical lag within few milliseconds while there will be rare cases when replication lags behind several seconds or even longer.

There are multiple reasons why application falls behind and why we see those lag spikes:

MyISAM Scalability and Innodb, Falcon Benchmarks

MySQL Performance Blog - Fri, 12/10/2007 - 12:01pm

We many times wrote about InnoDB scalability problems, this time We are faced with one for MyISAM tables. We saw that several times in synthetic benchmarks but never in production, that's why we did not escalate MyISAM scalability question. This time working on the customer system we figured out that box with 1 CPU Core is able to handle more queries per second than identical box, but with 4 CPU Cores.

The main query which showed this problem was similar to this:

Add an option to Fail on Innodb Initialize failure, Please ?

MySQL Performance Blog - Thu, 11/10/2007 - 8:19pm

I already wrote about this issue but as I is third team I'm helping customers to resolve this "frm corruption" issue it is the time to return to it again.

HighLoad 2007 Review

MySQL Performance Blog - Sat, 06/10/2007 - 9:03pm

Almost two weeks have passed since HighLoad 2007 conference in Moscow, Russia so I’m pretty late with feedback and my only excuse I was pretty busy to spare some time for it.

UNION vs UNION ALL Performance

MySQL Performance Blog - Fri, 05/10/2007 - 9:01pm

When I was comparing performance of UNION vs MySQL 5.0 index merge algorithm Sinisa pointed out I should be using UNION ALL instead of simple UNION in my benchmarks, and he was right. Numbers would be different but it should not change general point of having optimization of moving LIMIT inside of union clause being cool thing.

What did we want Interns to do

MySQL Performance Blog - Fri, 05/10/2007 - 5:35pm

About one month ago we posted a call for interns to work with us on various MySQL Performance related things.

We got good number of replies and a lot of people wondered what tasks exactly we could offer as surely this sort of involvement should be fun and should teach you something.

MySQL Quality of old and new features

MySQL Performance Blog - Thu, 04/10/2007 - 1:06pm

Recent couple of days our team was pointed to number of bugs in MySQL 5.0 which again seriously shakes the confidence in both MySQL Quality Control and bug fix promptness.

Let me just take couple of bugs as examples:

Triggers broken with auto-increment columns for Innodb tables (bug 26316). As you can see this bug is reported in February - over 6 months ago and it is still in verified state even though it has “serious” severity.

Heikki Tuuri to answer your in depth Innodb questions

MySQL Performance Blog - Fri, 28/09/2007 - 4:43pm

Have you ever had a question about Innodb internal design or behavior which is not well covered in MySQL manual ? I surely had.
Now you have a great chance to have them answered !

Heikki Tuuri, Creator of Innodb will answer your Questions about Innodb at MySQL Performance Blog.

Please leave your questions as comments to this post by 5th of October and I will pass them to Heikki to reply merging with questions I have myself.

Using VIEW to reduce number of tables used

MySQL Performance Blog - Fri, 28/09/2007 - 3:54pm

Many Open Source software solutions use database per user (or set of tables per user) which starts to cause problems if it is used on massive scale (blog hosting, forum hosting etc), resulting of hundreds of thousands if not millions of tables per server which can become really inefficient.

Innodb usability and ease of use.

MySQL Performance Blog - Fri, 28/09/2007 - 10:05am

It always surprised me how little Innodb team seems to think about product usability/ease of use, when it comes to settings, performance management etc.

InnoDB auto-inc scalability fixed

MySQL Performance Blog - Wed, 26/09/2007 - 7:40pm

There was long played scalability issue with InnoDB auto-increment field. For details check Bug 16979. In short words the problem is in case of insert into table with auto-increment column the special AUTO_INC table level lock is obtained, instead of usual row-level locks. With many concurrent inserted threads this causes serious scalability problems, and in our consulting practice we had a lot of customers who was affected by InnoDB auto-inc.

Possible optimization for sort_merge and UNION ORDER BY LIMIT

MySQL Performance Blog - Tue, 18/09/2007 - 3:19pm

Every so often you need to perform sort results retrieved from MySQL when your WHERE clause goes beyound col=const values which would allow MySQL to still use second portion of the index for the order by. Ranges as well as IN lists make this optimization impossible, not even speaking about index merge optimization. Lets look at this example:

Using GROUP BY WITH ROLLUP for Reporting Performance Optimization

MySQL Performance Blog - Mon, 17/09/2007 - 4:35pm

Quite typical query for reporting applications is to find top X values. If you analyze Web Site logs you would look at most popular web pages or search engine keywords which bring you most of the traffic. If you're looking at ecommerce reporting you may be interested in best selling product or top sales people. This information may often need simple select query, however what if you would like to show percents not just absolute value ?

For illustration purposes I've created a syntetic table filled with some 30mil rows evenly spread in 10.000 groups.

MySQL: what read_buffer_size value is optimal ?

MySQL Performance Blog - Mon, 17/09/2007 - 2:41pm

The more I work with MySQL Performance Optimization and Optimization for other applications the better I understand I have to less believe in common sense or common sense of documentation writers and do more benchmarks and performance research. I just recently wrote about rather surprising results with sort performance and today I've discovered even read_buffer_size selection may be less than obvious.


Subscribe to MySQL Performance Blog