1

Currently, my schema for my mongodb app is very straightforward. However, I'd like to simplify and clean it up further. What's the best way of updating my schema design? Should I just write a remapper in my language of choice using a library (fairly trivial), or is there a simpler way?

I don't mind doing the above, I just would like to know if there's a really obvious way of doing it reliably.

David Pfeffer
  • 38,869
  • 30
  • 127
  • 202
switz
  • 24,384
  • 25
  • 76
  • 101

1 Answers1

2

You dont have to migrate your schema, mongodb like any NoSQl system is an answer to schema problems of RDBMS.

That said, you will have to migrate your data by making a migration script.

You might find this answer useful.

Community
  • 1
  • 1
Eric
  • 2,784
  • 1
  • 20
  • 25
  • I guess I'd rather migrate the data rather than the schema. Thanks for the answer, I'll write a migration script. – switz Nov 23 '12 at 10:31