[SERVER-7613] Fast collection rename Created: 10/Nov/12  Updated: 09/Jul/16  Resolved: 10/Nov/12

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

Type: New Feature Priority: Critical - P2
Reporter: dabest1 Assignee: Unassigned
Resolution: Done Votes: 0
Labels: performance
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Any


Participants:

 Description   

Instead of blocking all activity when "rename collection" is being executed, I would suggest an improvement.

Instead of doing copy operation on rename, just rename collection data files and any metadata.

Another option is to store data files with some kind of id instead of using a collection name for file names. Store collection names in metadata only.



 Comments   
Comment by Eliot Horowitz (Inactive) [ 10/Nov/12 ]

that is how rename works within a database, and is O(1).
across databases you can't do that as its different physical files.

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