Say your users table looked like this:
id name country
And now you want to add their city: id name country city
This might cause the whole table to be locked and copied in SQL. While it might need no action at all in a NoSQL DB.Say your users table looked like this:
id name country
And now you want to add their city: id name country city
This might cause the whole table to be locked and copied in SQL. While it might need no action at all in a NoSQL DB.The answer is always the same to these kinds of complaints: just use Postgres please.
Dealing with schema changes is complex - NoSQL just moves it elsewhere where its easier to forget about it.
That was indeed the case in the past, but not so much anymore except for certain situations. MySQL, for example, has had support for in-place table alterations for a while [1]. I've used it in production and it works very well IME.
[1] https://dev.mysql.com/doc/refman/8.0/en/innodb-online-ddl.ht...
That's if you only have one application accessing your data.
Once you get multiple apps adding and retrieving data from the same data store, having the database do some work starts to make more sense.