What are the options for migrating / updating the MongoDB schema?
We (my colleagues and I) have a somewhat large (~ 100 million records) collection of MongoDB. This collection is mapped (ORM'd) to a Scala lift-mongodb that has gone through several different iterations. We have all kinds of code that processes missing fields, renames, deletes, transfers, etc.
While the whole “circuitless” thing can be nice and flexible, in this case it causes a lot of noise in the code as our object continues to evolve. The continuation of this path of "flexible object" is simply not sustainable.
How did you guys implement migration / upgrade schemes in MongoDB using Scala? Is there a framework for this? I know Foursquare uses Scala with MongoDB and Rogue (their own DSL queries) ... does anyone know how they handle their migrations?
Thanks.
source share