top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

Does MongoDB support primary-key, foreign-key relationship?

0 votes
633 views
Does MongoDB support primary-key, foreign-key relationship?
posted Jan 24, 2017 by Vinni Fernandis

Looking for an answer?  Promote on:
Facebook Share Button Twitter Share Button LinkedIn Share Button

Similar Questions
+1 vote

Query description: I have a collection name student_db and added a document in a collection with entries (name: "alok, age : 31 and profession: "xyz"). After inserting the document into student_db database, I want to add another (key:value ) pair i.e. salary: 50000.

Can someone help me out to resolve this problem ?

0 votes

some same cases data is not important, and replicate them from primary to secondary will waste servers performance. Is there any ways to config?

...