[CSHARP-1399] A document with same ID has two different value! Created: 11/Sep/15 Updated: 11/Sep/15 Resolved: 11/Sep/15 |
|
| Status: | Closed |
| Project: | C# Driver |
| Component/s: | None |
| Affects Version/s: | 1.10 |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Blocker - P1 |
| Reporter: | Mohsen [X] | Assignee: | Unassigned |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
Windows |
||
| Description |
|
Here is psedu code :
I have checked DB with MongoVUE and I see two document with same ID has different values! Here is the link to screenshot : |
| Comments |
| Comment by Craig Wilson [ 11/Sep/15 ] |
|
Hi Mohsen, There is no referential integrity in MongoDB. What you have done is this: 1) Saved a Gor(1) to the GorCollection Notice that we are talking about 2 different Gors at this point. The Gor in the Gor collection is not the same as the Gor in the animals array in the Cage Collection. If you are going to denormalize like this (and denormalization isn't bad), you have to take responsibility for updating all the references yourself. Hope that explains things. |