MySQL Forums
Forum List  »  Performance

SELECT *
Posted by: Benjamin Bach
Date: May 06, 2005 03:15AM

Dear *.*,

I'm having some great big troubles making a demonstration of how my company could benefit by migrating from SQL Server to MySQL.

The issue is SELECT * and ORDER BY RAND() which can take a couple of seconds to execute on a 19 MB table.

"EXPLAN SELECT * FROM big_table" tells me that no indexes are used.

I'm using MyISAM and have told my.cnf to consume alot of memory.

BTW: This query is really fast:

SELECT col1, col2, col3 (...) FROM big_table

EXPLAIN also tells me that it uses indexes. So I guess the real issue is how to deal with SELECT * which is all over our website.

Options: ReplyQuote


Subject
Views
Written By
Posted
SELECT *
2523
May 06, 2005 03:15AM
1291
May 16, 2005 04:07PM
1711
May 16, 2005 08:16PM
1696
May 22, 2005 02:03PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.