MySQL Forums
Forum List  »  Performance

Re: Index Not being used.
Posted by: Rick James
Date: May 27, 2016 11:29PM

You want to receive 5,134,336 rows? And you want it 'fast'? Think about network timing -- it cannot be done 'fast'.

Did you time it with and without the FORCE INDEX? Either one _might_ be faster.

How much RAM do you have? What is the setting of key_buffer_size?

Which columns are in which tables? Please
* Qualify each column whenever using JOIN.
* Provide SHOW CREATE TABLE for each table.

Is this "Data Warehousing"? And the data in the table does not change after it is inserted? Then Summary tables is the answer. Easily get 10x speedup. See my blog: http://mysql.rjweb.org/doc.php/summarytables .

Options: ReplyQuote


Subject
Views
Written By
Posted
1050
May 26, 2016 02:29PM
536
May 26, 2016 03:53PM
498
May 27, 2016 12:45AM
474
May 27, 2016 07:05AM
Re: Index Not being used.
428
May 27, 2016 11:29PM
564
May 31, 2016 07:04AM
441
May 31, 2016 09:26PM
516
June 01, 2016 05:40AM
386
June 01, 2016 11:29AM
438
June 01, 2016 11:41AM
446
June 04, 2016 05:14PM
505
May 27, 2016 10:14AM


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.