ここに 2 つの pymongo 集計クエリを貼り付けましたが、どちらも同じ結果を返します。どちらがより良いパフォーマンスを発揮するか知りたいのですが、
2 つの一致パイプラインの条件
db.bseadjprice.aggregate([
{"$match":{"scripcode":"533159"}} ,
{"$match":{"date":{"$in":dt}}},
{"$project":{"_id":0, "high":"$high", "low" : "$low"}}
])
単一一致パイプラインの条件
db.bseadjprice.aggregate([
{"$match":{"scripcode":"533159", "date": {"$in":dt}}},
{"$project":{"_id":0, "high":"$high", "low" : "$low"}}
])
ご意見をお寄せいただきありがとうございます。