[SERVER-6063] Support rename collection for sharded collections Created: 11/Jun/12  Updated: 06/Dec/22  Resolved: 15/Nov/21

Status: Closed
Project: Core Server
Component/s: Sharding
Affects Version/s: None
Fix Version/s: None

Type: New Feature Priority: Major - P3
Reporter: Spencer Brody (Inactive) Assignee: [DO NOT USE] Backlog - Sharding EMEA
Resolution: Done Votes: 22
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
is duplicated by SERVER-14120 Rename Collection can be allowed in M... Closed
Related
Assigned Teams:
Sharding EMEA
Participants:
Case:

 Comments   
Comment by Kaloian Manassiev [ 15/Nov/21 ]

Done in 5.0 as a result of the "Sharded collections support all DDL operations" project.

Comment by Andrew Doumaux [ 25/Jun/15 ]

My use case for this feature:

I'm using Mongo as an analytic cache. Every period of time I get a fresh copy of an analytic and load that analytic into a "staging" collection and when the load is completed I rename the collection to the "active" collection name. I was hoping to shard those collections so I could use the horizontal scaling of Mongo to cache larger analytic output.

This pattern is very similar to how mongo's $out aggregation operation works if an existing collection exists.

Thanks

Comment by Ryan Ovas [ 17/Jan/15 ]

In the same boat as Himanshu Jain. Any progress on this?

Comment by Himanshu Jain [ 12/Nov/14 ]

Hi,

Any updates on this jira ?
I am stuck because of this. I have to backup collection (shared) with '/' in name which has billion of documents.

Just can't think of dropping and re-inserting documents.

Pls suggest. Thank you.

Generated at Thu Feb 08 03:10:39 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.