0

Multikey is a array field in the Collection. It's easy to index if the field is not an array field. For an example

 {
    {
      "message":"msg1",
      "tags":["abc","cde","efr"]
    },
    {
      "message":"msg2",
      "tags":["abc,"efgh","efk"]
    },
    {
      "message":"msg3",
      "tags":["abc,"efgh","efr"]
    }
  }

Here tags are multi-key field. Could some one explain How multi key index is done internally in MongoDB in architectural perspective since there is not enough resources in the internet to explain about this.

istudyal
  • 29
  • 4
  • 1
    Does this answer your question? [mongodb: Multikey indexing structure?](https://stackoverflow.com/questions/7396219/mongodb-multikey-indexing-structure) – Valijon Jan 01 '20 at 13:30

1 Answers1

1

Not sure whether this explains all which you need to know. MongoDB internally stores indexes in B-tree structure: Btree Diagram Btree Detail

Devkinandan Chauhan
  • 1,785
  • 1
  • 17
  • 42