• Home
  • Jobs
  • Courses
  • Teachers
  • For business
  • Blog
  • ES/EN

0

27
Views
Can cosmos DB be used without sharding/partitioning enabled?

We want to migrate from native mongoDB to Azure-hosted cosmosDB. While creating collections we see a field "shard key" which is mandatory, but currently our mongo DB set-up does not support sharding. Is it possible to migrate to cosmos without enabling sharding and with only minimal changes in our application?

13 days ago ·

Santiago Trujillo

2 answers
Answer question

0

Yes, it's possible. Option is right there in the portal when provisioning a new collection.

enter image description here

13 days ago · Santiago Trujillo Report

0

I guess the cosmos UI behaves weirdly. When I try to create a new collection by clicking on the ellipses button on a DB or choose existing DB, it doesn't provide the option to create collection without supplying shard key.

new collection in a DB When I create a new collection and choose to create a new DB then and there, and choose not to have a shared throughput, in that case only I get the option to create collection without sharding.

enter image description here

13 days ago · Santiago Trujillo Report
Answer question
Find remote jobs
Loading

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post job Plans Our process Sales
Legal
Terms and conditions Privacy policy
© 2022 PeakU Inc. All Rights Reserved.