Hey list,

I have a question regarding the slow queries log, and queries not using index.

I have a small table, with say 10 entries, like that :
ID |  Element
-------------
1  |  One
2  |  Two
3  |  Three
4  |  Four
5  |  Five
6  |  Six
7  |  Seven
8  |  Eight
9  |  Nine
10 |  Ten

I want to get all those entries:
SELECT ID, Element FROM tblentries;

The problem is that this query, even if very fast, is logged in the slow query 
log because it does not use index (I
activated this option in the slow query log). Woudln't it be better if such 
queries would be logged only in case there
is a WHERE, ORDER or GROUP/HAVING clause ?

Also, is it better to do :
SELECT ID, Element FROM tblentries;
or
SELECT ID, Element FROM tblentries WHERE ID > 0;

(In this last case, it won't be logged in the slow query log beause it uses an 
index...)

Thank you,
HMax



-- 
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:    http://lists.mysql.com/[EMAIL PROTECTED]

Reply via email to