Documented database. What if document definitions change?

As I understand it, you can enter any unstructured information into a document-oriented database. Imagine a document like this:

{
  name: 'John Blank',
  yearOfBirth: 1960
}

Later, in the new version, this structure is reorganized into

{
  firstname: 'John',
  lastname: 'Blank',
  yearOfBirth: 1960
}

How do you do this with document-oriented databases? Do you need to prepare merge scripts that modify all your records in the database? Or are there better ways to handle structural changes?

+5
source share
1 answer

, . , , SQL .

, , DODB . , "" . , " " , .

SQL, , , . DODB . .

, , , . , , " " (, lastname). , , .

; , - ​​, name , , lastname, firstname, firstname lastname company name - " " , firstname lastname, , name .

, , , "" /. , , , .

, . ; , .

+3

All Articles