I have a table with the following structure:
CREATE TABLE `geo_ip` ( `id` bigint(20) NOT NULL AUTO_INCREMENT, `start_ip` int(10) unsigned NOT NULL, `end_ip
Adding indices will help.
Note: If your query is sth like
where x between a and b AND y between c and d
, a INDEX(x, y) will not improve the performance, but two seperate indices for x and y will.
INDEX(x, y)
x
y