DEV Community

Discussion on: MongoDB lookup on an array of objects which contains (foreign) ObjectId as a key

Collapse
 
krishnabose02 profile image
Krishna Bose

Hey, thats a good question. At this point I cannot find any good solution for the scenario, but one thing I've learnt lately is that if your resource is read intensive, you should consider having a structure of data that allows you to fetch the documents without multiple lookups. Even if this means duplication of data, as long as you have high read to write ratio (say 100:1) or even higher, then it still results in a optimal strategy.