How can we improve Azure Cosmos DB?

Add ability to rename databases and collections

It should be possible to rename databases and collections.

This feature is universal in all if not the vast majority of database products.

Lack of ability to rename anything makes it very hard for us to manage releases if we are adding new data. Currently, we have to create a copy of the existing database (which is a feat in itself, since this again is not core functionality), make the change there, and then re-point the website to the updated database. All this time, we are incurring extra costs and inconvenience.

Renaming things also allows us to correct typos, which happen from time to time!

329 votes
Vote
Sign in
(thinking…)
Password icon
Signed in as (Sign out)
You have left! (?) (thinking…)
Michael Richardson shared this idea  ·   ·  Flag idea as inappropriate…  ·  Admin →

The ability to rename databases and collections is not currently something that is in our road map.

Currently the way to accomplish this task in Cosmos DB is to create a new collection with the changed name then use bulk exec or change feed to populate it.

Thanks for your request and input on this. We may consider this for a future planning cycle.

thanks.

3 comments

Sign in
(thinking…)
Password icon
Signed in as (Sign out)
Submitting...
  • Imre Pühvel commented  ·   ·  Flag as inappropriate

    It doesn't even have to be a true rename of the same resource (which obviously could be complicated), but some tested comfortable migration automation, with suitable disclaimer regarding risks and most likely a small downtime is expected., would significantly reduce possible mishaps during manual resource reorganization.

  • Anonymous commented  ·   ·  Flag as inappropriate

    yes, we are also looking for this feature. we need to write to a new collection and once successful, we are planning to delete old collection and rename new to old. since azure search is configured to search the old collection

Feedback and Knowledge Base