codex-blackboard
codex-blackboard copied to clipboard
Use embedded document in mongodb for tags
Since tags are basically a hash, why not store them as a hash? It would be more efficient to look them up and you wouldn't have to do the retry loop when modifying them.
Note that finding puzzles whose X tag has value Y doesn't require this because of $elemMatch.