• Jobs
  • About Us
  • professionals
    • Home
    • Jobs
    • Courses and challenges
  • business
    • Home
    • Post vacancy
    • Our process
    • Pricing
    • Assessments
    • Payroll
    • Blog
    • Sales
    • Salary Calculator

0

428
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?

about 3 years 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

about 3 years 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

about 3 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

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

Andres GPT

Recommend me some offers
I have an error