我在集合中有2個字段,集合是空的,需要填充。 這是它是如何定義的: public class MyColl
{
[BsonElement("id")]
public ObjectId id { get; set; }
public ObjectId A { get; set; }
public ObjectId B { get; set; }
}
我
有一個集合people用以下指標: {"first_name": 1, "address.state": -1, "address.city": -1, "ssn": 1}
對於兩個過濾&排序, 以下哪些查詢會使用索引? Which of the following queries will use the index?: { "first_name": { $gt: "J" } }).sor