3 ms·
Warning: One misconfiguration of your database and you will get hammered by billing. One guy forgot to put foreign keys and got a $20,000 bill.
by sergiotapia 5y ago
Warning: One misconfiguration of your database and you will get hammered by billing.
One guy forgot to put foreign keys and got a $20,000 bill.
- sudhirj 5y agoIndexes, rather. They charge by rows read, so if you don't add indexes you will (very quickly) read all the rows in your table on every query. That racks your bill really fast. The foreign key thing is because the author thought foreign keys add indexes, but here foreign keys are no-ops and don't do anything. Because it's so distributed there's no support for foreign keys.
- samlambert 5y agoNonsense. It wasn't 20k and it was corrected.
- hyuuu 5y agolink?
- manigandham 5y agoHere's the story: https://news.ycombinator.com/item?id=29132572 https://news.ycombinator.com/item?id=29132572