Re: Slow JOIN to convert IP to Country Code
Hi. I did some tests and found some information in profiling and slow query log.
The slow query log shows Rows_examined: 1 010 815.
Profiling shows that ~99% of execution time takes the stage "Copying to tmp table". After I've changed my iplist table to use char columns instead of varchars the total time of query dropped to ~7.524 seconds, but still huge amount of that time(7.52258=99.98%) takes the stage of copying to tmp table. So it seems to me the only way to optimize this query is speed up this part, but I do not know how.
If you have any idea it will be really helpful.
Thanks.
Edited 1 time(s). Last edit at 05/30/2009 01:02AM by Harutyun Drnoyan.
Subject
Views
Written By
Posted
5315
May 19, 2009 05:05AM
2395
May 19, 2009 07:11AM
2210
May 19, 2009 11:16PM
2244
May 21, 2009 01:34AM
2188
May 27, 2009 11:58AM
2164
May 27, 2009 08:05PM
2113
May 27, 2009 10:13PM
2310
May 27, 2009 07:04AM
2067
May 27, 2009 09:46AM
2080
May 27, 2009 10:05PM
Re: Slow JOIN to convert IP to Country Code
2165
May 29, 2009 10:55AM
2111
May 29, 2009 03:34PM
2417
May 30, 2009 01:43AM
2278
May 30, 2009 10:47AM
2234
May 31, 2009 11:10PM
2587
June 01, 2009 04:22AM
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.