MySQL Forums
Forum List  »  Performance

Re: Performance problem with outer join
Posted by: Rick James
Date: July 11, 2014 04:26PM

> | 1 | SIMPLE | datausage | ALL | NULL | NULL | NULL | NULL | 96805 | Using where; Using join buffer (Block Nested Loop) |

Note "ALL" and "NULL". That is saying it is not even using the index to do the JOIN. Here's why:

`accountID` varchar(25) COLLATE utf8_unicode_ci NOT NULL ... DEFAULT CHARSET=utf8
`AccountID` varchar(25) ... DEFAULT CHARSET=latin1 ;

Inconsistent CHARSETs make it 'impossible' to use the index. Hence it has to scan Datausage again and again.

Make the schema consistent.

Options: ReplyQuote


Subject
Views
Written By
Posted
1910
July 11, 2014 07:53AM
Re: Performance problem with outer join
833
July 11, 2014 04:26PM


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.