[SERVER-1035] Basic migration tools Created: 21/Apr/10  Updated: 26/Apr/10  Resolved: 21/Apr/10

Status: Closed
Project: Core Server
Component/s: Shell, Tools
Affects Version/s: 1.4.1, 1.5.0
Fix Version/s: None

Type: New Feature Priority: Minor - P4
Reporter: Peter Kieltyka Assignee: Eliot Horowitz (Inactive)
Resolution: Won't Fix Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Any


Participants:

 Description   

It would be nice if mongodb provided basic migration shell/console tools.

Operations such as:

  • Rename a field for all documents in a collection
  • Delete a field from all documents in a collection

.. others?

I have a database with 20 million records and I will be writing a ruby script to do this... would be nice to do it in an optimized way via the console.



 Comments   
Comment by Eliot Horowitz (Inactive) [ 21/Apr/10 ]

I don't really think migration tools make sense.

You can already do $unset to delete a field and we'll be adding $rename SERVER-394

So you can just to a multi-update

Generated at Thu Feb 08 02:55:52 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.