codex-blackboard icon indicating copy to clipboard operation
codex-blackboard copied to clipboard

Use embedded document in mongodb for tags

Open Torgen opened this issue 7 years ago • 1 comments

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.

Torgen avatar Jan 17 '18 14:01 Torgen

Note that finding puzzles whose X tag has value Y doesn't require this because of $elemMatch.

Torgen avatar Feb 13 '18 06:02 Torgen