I have a game that stores boss kills on easy and hard modes in a MySQL database. There are 14 bosses. I want to store the number of times a player has killed a boss and at what difficulty. I have a few options that I can see..
Option 1
Create an individual column in the table for each boss as well as for each difficulty. E.g.
playerid,(all the other player fields here),boss1easy,boss1hard,boss2easy,boss2hard,boss3easy,boss3hard,boss4easy,boss4hard,boss5easy,boss5hard,boss6easy,boss6hard,boss7easy,boss7hard,boss7easy,boss7hard,boss8easy,boss8hard,boss9easy,boss9hard,boss10easy,boss10hard,boss11easy,boss11hard,boss12easy,boss12hard,boss13easy,boss13hard,boss14easy,boss14hard
Option 2
Create 2 fields that store a sequence of numbers that can be extracted later to compare in PHP. Where easykills is a string of 28 characters with every 2 characters a counter for the number of times a boss is killed. E.g. Obviously limit to counting up to 99 kills:
playerid,(all the other player fields),easykills,hardkills
easykills = "2103030405060708091011121314" = boss1easy = 21 kills, boss2easy = 03 kills, boss3easy = 03 kills, boss4esay = 04 kills, etc
Option 3
Create a seperate table called bossKills and simply add 1 to the existing value when a boss is killed. E.g.
playerid,boss,difficulty
My question is this: Which of these methods would result in less load of the server when running MySQLi queries from PHP? Is there a better method that I am unaware of?