assume I have collection A like:
A{
b: bid
}
and collection B with index on field x
assume I do an aggregation on A like:
{ $lookup from B as b where b._id = a.bid}
{ $match b.x = something}
will the index on B improve query?
assume I have collection A like:
A{
b: bid
}
and collection B with index on field x
assume I do an aggregation on A like:
{ $lookup from B as b where b._id = a.bid}
{ $match b.x = something}
will the index on B improve query?