We are operating an ad network and have some performance issues recently.
The table making problems is the table "clicks" with columns:
click_id int
, affiliate_id int
, campaign_id int
, country_id int
, time datetime
.
All our Reads and Inserts have country_id in WHERE clause.
In Fact a clicks from one country always blocks the complete table for every other country too. This is not necessary and slows down our performance a lot.
Dear MySQL professionals, am I right to understand that partitioning the clicks table on country_id is a great solution for us?
I read about it in mysql manual
But I'm not sure yet which Partitioning Type would be suitable for our needs.
Which one would you recommend and why?