Hi bstjean,
Thanks.
Here is the actual query :
SELECT * FROM i2l.ip2loc WHERE ip_from <= 1141533096 AND ip_to >= 1141533096
it is taking time :
Showing rows 0 - 0 (1 total, Query took 4.6680 sec)
This is the explain of query :
table type possible_keys key key_len ref rows Extra
ip2loc ALL PRIMARY,ip_from_2 NULL NULL NULL 1248226 where used
This is the table Structure :
ip_from bigint(20) No
ip_to bigint(20) No
country_code char(2) Yes NULL
country_name varchar(64) Yes NULL
region varchar(128) Yes NULL
city varchar(128) Yes NULL
The following is the indexes
Keyname Type Cardinality Field
===============================
PRIMARY PRIMARY 1248226 ip_from
ip_from_2 INDEX 1248226 ip_from ip_to
once again thanks for your time.