Story

Ask HN: How to design DB schema for multiplayer exp/level system?

hnroo99 Saturday, January 10, 2026

I'm building a turn based multiplayer game where players can earn exp from playing matches and level up (levels will mainly be used for aesthetic purposes, although I might add restrictions such as "you must be level x to edit room names").

This is my first time designing an exp/leveling system though so I'm not 100% sure how to approach the database design. Is it best practice to store both exp and level? Or is it better to store only exp and derive level?

The latter sounds potentially nicer if I want to adjust the level curve later, although that implies that all users could see their level change hm...

1 0
Read on Hacker News