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
882
May 26, 2016 02:29PM
457
May 26, 2016 03:53PM
442
May 27, 2016 12:45AM
415
May 27, 2016 07:05AM
Re: Index Not being used.
397
May 27, 2016 11:29PM
413
May 31, 2016 07:04AM
408
May 31, 2016 09:26PM
445
June 01, 2016 05:40AM
363
June 01, 2016 11:29AM
413
June 01, 2016 11:41AM
421
June 04, 2016 05:14PM
416
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.