I am building a classifieds website. Can you suggest me how do I partition geolocation table based on country ???
UPDATE: Can I do based on latitude and longitude ?
Below is my table structure.
CREATE TABLE IF NOT EXISTS `geo` (
`id` int(11) NOT NULL,
`name` varchar(255) NOT NULL,
`location_type` tinyint(1) NOT NULL COMMENT,
`parent_id` int(11) NOT NULL COMMENT 'parent location_id',
`latitude` varchar(255) NOT NULL,
`longitude` varchar(255) NOT NULL,
`is_deleted` tinyint(1) NOT NULL COMMENT '0:visible,1:invisible'
) ENGINE=InnoDB AUTO_INCREMENT=14 DEFAULT CHARSET=utf8;