Archive for February, 2008

29
Feb

MySQL Performance is more than just using the query cache

I’m working on a project with a huge MySQL database and for that reason, I was looking out for some mysql performance tips.
One information I found in nearly every blog was using the slow_query function from mysql.

Put that in your my.cnf:

log-slow-queries=/tmp/slow_queries.log
long_query_time=10


After that you will see all querys that take longer than 10 sec. in the /tmp/slow_queries.log.
To see what you can optimize at this point, you can use EXPLAIN.

So that’s something you find everywhere. Something else you can see everywhere is to activate the query cache. If you are using mysql 5 > this should be enabled by default.

But there are these simple and little optimization points you should use everyday to bring you database on the speedway.

  • Use only the datatypes you really need. Numbers should be saved as int. And text should be saved in the right type.
  • If you’re working with numbers always use only the number no quotes around it. select * from bla where id = 123. Otherwise the server will have to cast the number and will work with a string.
  • Don’t use rand()
23
Feb

Beat me! It’s a html game

Beat me! This is a funny geek game. So, let’s show me your highscore.

43

15
Feb

QMail recipies at maurus.net

Jonas from the maurus.net weblog is writing down some qmail recipies. The first entry is about “Forwarding mail and changing the envelope sender”.
I guess for everyone who is interested in qmail and working with it, there will be some helpful insights.

06
Feb

Grails 1.0 released

As I blogged before, I worked with Grails in the past. One thing I didn’t like was the renaming of functions every version. Hopefully this is over now. Today Codehouse released Grails 1.0.
Further informations: Grails website