MySQL Forums
Forum List  »  InnoDB

Re: Help on Query with DATE BETWEEN not performant
Posted by: Peter Brawley
Date: February 03, 2020 10:45AM

Yes the fast 2nd run is due to the cache, which is removed in 8.0 so you may as well disable it now.

I'd expect MySQL to use the earticles.dateofarticle index, did you try Force Index on that key? It shouldn't be necessary, but if that doesn't work consider replacing that index with (dateofarticle,id).

I'd also experiment with fewer buffer pool instances.

Edited 1 time(s). Last edit at 02/03/2020 10:47AM by Peter Brawley.

Options: ReplyQuote

Written By
Re: Help on Query with DATE BETWEEN not performant
February 03, 2020 10:45AM

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.