I want to store game Inventory information into SQL.
What method should I use to best benefit performance costs?
The data I want to store is:
- Slot ID (from 0 to 608);
- Item ID (from 0 to 66000);
I can think about 2 ideas:
- Using " ; " separators, and all 608 Items goes into 1 column...
UserID | Items
---------+-----------
70001 | 3001 ;10000;65001;...
70002 | 0 ;0 ;0 ;...
70003 | 1 ;0 ;10 ;...
- Or new Table for each user (UserID + Inv) where I can store like this:
table: 70001Inv
SlotID | ItemID
----------+-----------
000 | 3001
001 | 10000
002 | 65001