In a NoSQL database like MongoDB, how are schemas defined and enforced?

  • Schemas are strictly enforced before data insertion
  • Schemas are defined using SQL
  • Schemas are flexible and can evolve with data
  • Schemas are predefined and cannot change
In NoSQL databases like MongoDB, schemas are flexible and can evolve with data. There's no strict enforcement of schemas before data insertion, allowing for schema-less data storage. This flexibility is one of the key features of NoSQL databases, making them suitable for handling unstructured or semi-structured data.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *