14 - $lookup aggregation in mongodb

preview_player
Показать описание
$lookup aggregation in mongodb
#mongodb #learnsomethingnew

😊 SUBSCRIBE TO MY YOUTUBE CHANNEL 📺

Рекомендации по теме
Комментарии
Автор

Hi, I have question about lookup, Is it running a looking up for every documents? I mean if in the orders collection we had multiple documents with { item: "almonds", /* ... */ } is it compare them multiple times (as many documents we have in order) with the inventory collection?

As i heard from a C# developer, in SQL world they have this problem, Therefore programmer/developer fetch the record (from inventory) in code and then simply do the same thing that database want to do for him/her.

Is it a problem or performance issue?

kasir-barati