Chapter 3: Missing step in Lab Prerequisites

The last two labs (Documents in Chunks and Detect Scatter Gather Queries) describe the same procedure in Lab Prerequisites section.

The missing thing is between steps 2 and 3. The last step will not work unless you enable sharding for the given database beforehand.

sh.enableSharding("<target database>")


1 Like

Thanks for noticing the point @dinkec. We will add the point in case :slight_smile:
But as mentioned in the Lab Pre-requisites, we assume you have a sharded collection m103.products that means m103 has sharding enabled even if we drop the collection and re-import it.


1 Like