MySQL Forums
Forum List  »  Optimizer & Parser

ORDER BY RAND() taking too much time
Posted by: Yogesh Salvi
Date: April 29, 2006 05:30AM

Hi

In products table i am having around 15 laks of records, when i run following query it took around 10 to 12 sec....

The query is like:-
SELECT id, product_title, product_description, price_of_product, image_url FROM products WHERE products.id_pr_data_feed='some_id' ORDER BY id LIMIT 12;

Please help to to optimize this query...........

thanks

Options: ReplyQuote


Subject
Views
Written By
Posted
ORDER BY RAND() taking too much time
10207
April 29, 2006 05:30AM


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.