Learning on Web Dev Open is free for all.

Backend Engineering > Data that has to lastAggregation, and doing the work near the data
Phase 05Data that has to last257 of 434

Aggregation, and doing the work near the data

Group, join and reshape in the database instead of pulling ten thousand documents into Node and looping.

Build45 minAI implements

Build this in your own editor

This one runs on your machine rather than in the browser workbench. Work to the outcomes below, then come back and mark it complete.

You should now be able to

  • Write a multi-stage aggregation pipeline
  • Filter early so later stages see less data
  • Compare the pipeline against the equivalent application-side loop
Ask the community

Loading…