I accidentally introduced a bug in my software that caused it to create duplicate entries. Now I have a lot of duplicate entries, the total rows of that table is around 111 million.
This is my table structure for that table.
CREATE TABLE `graph_player_ranked` (
`player_id` int(11) NOT NULL,
`season_id` int(11) NOT NULL,
`playlist_id` int(11) NOT NULL,
`timestamp` datetime NOT NULL,
`matches_played` int(11) DEFAULT NULL,
`rank_points` int(11) DEFAULT NULL,
`tier` int(11) DEFAULT NULL,
`division` int(11) DEFAULT NULL,
`no_update_at` datetime NOT …Run Code Online (Sandbox Code Playgroud)