3 ms·
> In Mongo, I'm pretty sure you need to first lookup engineering, then lookup the employees in engineering. That could be O(# employees in engineering) queries
by acjohnson55 11y ago
> In Mongo, I'm pretty sure you need to first lookup engineering, then lookup the employees in engineering. That could be O(# employees in engineering) queries rather than 1.
Or, you could denormalize, and give yourself all sorts of future headaches maintaining data integrity.