Sharded empty collection


I sharded my m103.products collection before importing my dataset. It created just one big chunk. It did not split my chunk after importing the dataset. Had to do it manually using sh.splitFind( "m103.products", { "zipcode": "63109" } )

What is the best way to do this? I thought mongos would created multiple chunks after importing the data.

I think you just needed to be more patient.

My understanding is that balancing is a somewhat an expensive process. So at first everything is imported in the existing chunks so the import is done as fast as possible. Then in the background, the big chunks get automatically split. But it takes time so as to not overload the system while the splitting is happening.


This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.