What is the master or primary key in mongodb?
Answer / Vijay Pratap Singh
In MongoDB, there is no strict concept of a master or primary key like in traditional relational databases. Instead, each collection can have one document that serves as the _id field, which uniquely identifies each document within the collection. The _id field can be automatically generated by MongoDB, or it can be manually provided by the user.
| Is This Answer Correct ? | 0 Yes | 0 No |
What is the difference between mongodb and cassandra?
How do you see the locking status in mongo instances?
How does sharding work with replication?
How do I create a collection in mongodb? Write it's syntax
Can we store images in mongodb?
Is mongodb good for storing images?
Why are mongodb data files large in size?
What are 32-bit nuances?
Define mongodb?
Can mongodb store files?
Does mongodb need a lot space of random access memory (ram)?
How can you see the connection used by mongos?
Oracle (3253)
SQL Server (4518)
MS Access (429)
MySQL (1402)
Postgre (483)
Sybase (267)
DB Architecture (141)
DB Administration (291)
DB Development (113)
SQL PLSQL (3330)
MongoDB (502)
IBM Informix (50)
Neo4j (82)
InfluxDB (0)
Apache CouchDB (44)
Firebird (5)
Database Management (1411)
Databases AllOther (288)