LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 10-26-2010, 06:21 AM   #1
skoinga
Member
 
Registered: May 2010
Posts: 87

Rep: Reputation: 0
mysql slow queries?


I've set this value on my my.cnf:

Quote:
log_slow_queries = /var/log/mysql/slow.log
long_query_time = 3
log-queries-not-using-indexes
If I type:

Quote:
mysqldumpslow slow.log
I see lots of query like this:

Quote:
Count: 1 Time=0.00s (0s) Lock=0.00s (0s) Rows=1.0 (1), root[root]@localhost
SELECT COUNT(*) FROM `roundcubemail`.`cache`

Count: 1 Time=0.00s (0s) Lock=0.00s (0s) Rows=5.0 (5), ulog[ulog]@localhost
SELECT * FROM ulogd.output

Count: 4 Time=0.00s (0s) Lock=0.00s (0s) Rows=0.0 (0), debian-sys-maint[debian-sys-maint]@localhost
SELECT COUNT(*) INTO @discard FROM `information_schema`.`TRIGGERS`

Count: 1 Time=0.00s (0s) Lock=0.00s (0s) Rows=0.0 (0), ulog[ulog]@localhost
CREATE TEMPORARY TABLE ulogd.output AS SELECT * FROM ulogd.allrows LIMIT N, N

Count: 1 Time=0.00s (0s) Lock=0.00s (0s) Rows=1.0 (1), root[root]@localhost
SELECT COUNT(*) FROM `roundcubemail`.`contactgroupmembers`
why? The time is < than 3 seconds...
 
Old 10-26-2010, 08:50 AM   #2
Guttorm
Senior Member
 
Registered: Dec 2003
Location: Trondheim, Norway
Distribution: Debian and Ubuntu
Posts: 1,453

Rep: Reputation: 447Reputation: 447Reputation: 447Reputation: 447Reputation: 447
They are not using indexes.
 
1 members found this post helpful.
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
mysql queries Eppo Linux - Software 3 07-13-2010 11:17 AM
LDAP queries extremely slow fantasygoat Linux - Server 6 05-20-2010 10:37 AM
Log slow queries mysql a4kata Linux - Newbie 1 09-10-2009 07:14 AM
slow wireless only in linux, many dns queries true_atlantis Linux - Wireless Networking 5 06-10-2006 04:07 AM
mutlithreaded client slow mysql queries gecoool Programming 3 10-11-2005 01:26 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 08:00 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration