[–] 2 points 2 months ago*

Since you have a sequence of keys, go with a trie data structure. The key will be a string of "worktype|region|job".

You can encode/decode the individual keys from enums to integers (vice-versa for decode).

but since you said you want it to be simple and want this for a game you probably can go with any SQL database as they are reliable and support locking so you don't have to worry about parallel access later.

  • source
  • view more: next ›