Tuesday, January 25, 2011

Handler_read_rnd is too high (more than 2GB)

Hello,

I am running an advertising program and there are some SELECT, UPDATE and DELETE queries when showing ads. Sometimes, displaying ads is fast but sometimes it is too slow. At this time, it is slow and Handler_read_rnd and Handler_read_rnd_next is as mentioned below.

Handler_read_rnd 2,844.68 M Handler_read_rnd_next 2,945.63 M

How can I speed-up displaying ads (decreasing Handler_read_rnd and Handler_read_rnd_next)

Thank you, pnm123

PS: Currently there are 7,068,528 rows on the advertising program's database.

  • Better start looking at your queries and indexes. Make sure you have proper indexes setup and check your queries for large joins, which both can make those counters go up.

    There are about a bazilion guides for how to optimize MySQL out on the net. One place to start is here. Or you can have a look at the MySQLPerformance blog.

    From pehrs

0 comments:

Post a Comment