English 中文(简体)
将把另一份嵌入我的Mongo文件。 银行用户模型在没有这些嵌入文件的情况下影响旧数据?
原标题:Will adding another embedded document into my MongoDB user model affect the older data without those embedded documents?
  • 时间:2012-04-19 23:18:01
  •  标签:
  • mongodb

In the project I ve been working on, I ve added a new field - an embedded document. Will this addition affect data prior to the change? From what I ve read this shouldn t affect prior data, and this is actually one of the benefits of using MongoDB. Its just the previous data won t have that field.

感谢!

最佳回答

它不会影响你以前的文件——如果你想要,你收集的每份文件都可以拥有自己的独特领域。 应由你在申请一级处理。

问题回答

暂无回答




相关问题
Access DB Ref MongoDB

Whats the best way to access/query a DB Ref: UPDATE: users: name, groupref : {$ref:"groups",$id:"ObjectId ..." } } groups: name, topic, country,...,.. Assumption is that user belongs to only one ...

MongoDB nested sets

What re the best practices to store nested sets (like trees of comments) in MongoDB? I mean, every comment can have a parent comment and children-comments (answers). Storing them like this: { ...

MongoMapper and migrations

I m building a Rails application using MongoDB as the back-end and MongoMapper as the ORM tool. Suppose in version 1, I define the following model: class SomeModel include MongoMapper::Document ...

MongoDB takes long for indexing

I have the following setup: Mac Pro with 2 GB of RAM (yes, not that much) MongoDB 1.1.3 64-bit 8 million entries in a single collection index for one field (integer) wanted Calling .ensureIndex(...) ...

Storing and accessing large amounts of data

My application creates pieces of data that, in xml, would look like this: <resource url="someurl"> <term> <name>somename</name> <frequency>somenumber</...

热门标签