title: Subdocument index in mongo
body: <p>What exactly happens when I call <code>ensureIndex(data)</code> when typical data looks like <code>data:{name: "A",age:"B", job : "C"}</code> ? Will it create a compound index over these three fields or will it create only one index applicable when anything from data is requested or something altogether different ?</p>