Skip to content

Instantly share code, notes, and snippets.

@kyriesent
Last active December 12, 2015 12:29
Show Gist options
  • Save kyriesent/4772775 to your computer and use it in GitHub Desktop.
Save kyriesent/4772775 to your computer and use it in GitHub Desktop.
Tag:
_id: ObjectId
tag: String #formal name of tag, i.e 'Javascript'
tagL:
type: String #lower case name of tag, i.e 'javascript'
index: true #important for performance when searching for tag data from tag name
Item:
_id: ObjectId
tags: [String] #array of informal names of tag, i.e 'jaVAsCripT'
tagsL: [ #array of lowercase tags, these will map to the tagL fields of the tags themselves
type: String
index: true #important for performance when searching for items by tag
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment