Home » Performance » MySQL » Queries are well optimized but they are causing many slow queries
Queries are well optimized but they are causing many slow queries [message #3313] Thu, 17 July 2008 13:20 Go to previous message
student  is currently offline student
Messages: 3
Registered: June 2008
Junior Member
Hello,
I have many queries that are well optimized using indexes.

when I execute these queries in phpmyadmin using profiling, they always show something like 0.00032 sec etc..

Example:
SELECT id FROM table WHERE column='something' limit 1

But when I look in the slow query log, i find a lot of these queries that exceed 2 seconds.

In this table, I estimate that there are around 99.9% selects and 0.1% updates.
I have used low_priority in those update queries.

Inserts and deletes are carried on once in a few days just for a few seconds.
So, I think they may not be causing these slow queries.

Is there any locking issue that is causing slow queries?
If yes, how to solve it.

Can you please inform me why the queries are performing very well in phpmyadmin but are causing slow queries?

Let me know if you would like to know more information.

Thank you

Read Message
Read Message
Read Message
Previous Topic:Multiple categories and index problems
Next Topic:New to MySQL
Goto Forum:

  


Current Time: Fri Jul 10 04:13:00 EDT 2009

Total time taken to generate the page: 0.02051 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 2.7.7.
Copyright ©2001-2007 FUD Forum Bulletin Board Software

MySQL is a trademark of Sun Microsystems.
InnoDB is a trademark of Oracle Corp.

Percona Performance Forums are a service of Percona, Inc.
Not affiliated with Sun Microsystems or Oracle Corp.