Wednesday 31 May 2017

Mongo index [String] property

I was just reviewing some code, and saw such property in the mongoose scheme:

names: {
  type: [String],
  index: true
}

As far as I understand how indexes work, they are binary trees, and how is this going to be organized as a node of a tree? Is there at all any sense of indexing such property?



via Lazyexpert

No comments:

Post a Comment