Quote from MongoDB Architecture Guide
Developers are working with applications that create massive volumes of new, rapidly changing data types — structured, semi-structured, unstructured and polymorphic data.
what are polymorphic data? Please explain for a guy with SQL background.
Document-oriented database are schemaless. It mean that databases don't care about schema of the data. But each document has own schema / structure. Polymorphic data means that in one collection you have many versions of document schema (e.g. different field type, fields that occur in some documents etc.).
For example in below documents email field is string or array of string:
{
"user": "Anna",
"email" : "[email protected]"
}
{
"user": "Jon",
"email" : [
"[email protected]",
"[email protected]"
]
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With