Earlier quoted context omitted.
If you add a default value it locks the table and re-writes it. However, if you don't add a default value postgres will perform the operation instantly. Old rows will be untouched, and new values will be added with the shoe_size of either NULL or whatever you set it to be... IE exactly the same outcome and performance as the MongoDB case mentioned above. Adding a field in postgres while setting a default value would…
> Now I'm not anti-MongoDB, I'm just saying you shouldn't give it credit for something that relational database do just fine. No, it can't. Sorry, it absolutely can't. > If you add a default value it locks the table and re-writes it. > However, if you don't add a default value postgres will perform the operation instantly. And in MongoDB you don't have to change anything in the DB (hence, no downtime). It's all in yo…
Is that why? I was under the impression that Facebook doesn't use the relational properties of MySQL because they couldn't get the performance out of it because of their scale, a problem a lot of advocates of the non-relational model dont' seem to have in my experience.