MySQL Forums
Forum List  »  Performance

Re: Slow JOIN to convert IP to Country Code
Posted by: Harutyun Drnoyan
Date: May 27, 2009 11:58AM

Sorry for double posting but it seems there was a confusion.

The new query takes less time to execute ~ 11 second and uses index

Explain shows

id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
1	SIMPLE	stat	range	dateline,ip_interval	ip_interval	4	 	490968	Using where; Using index; Using temporary; Using filesort
1	SIMPLE	iplist	eq_ref	PRIMARY	PRIMARY	4	vb38.stat.ip_interval	1

Is there any way to optimize this query further more?

Options: ReplyQuote




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.