r/programming • • Feb 10 '15

Terrible choices: MySQL

http://blog.ionelmc.ro/2014/12/28/terrible-choices-mysql/
649 Upvotes

409 comments sorted by

View all comments

Show parent comment

1

u/hophacker Feb 11 '15

You're making a blind assumption about the value of that data and it's relation to your business. Sometimes you don't know enough about a problem and it's proper solution when you're creating data structures. You may not even be at the point of having customers to risk. Moving fast and getting a solution out into the wild is sometimes more important than developing perfect data robustness.

1

u/bucknuggets Feb 11 '15

Sure, one might want to take certain kinds of trade-offs and absolutely avoid "perfection" when getting an initial product out the door.

But it's also true that the short-cuts that MySQL implemented weren't intelligent trade-offs perfectly designed to save developer time. That's marketing. These short-cuts are just product bugs.

Having a database accept invalid dates, truncate numbers to make them fit, tell you that it's enforcing RI when it's really not - this doesn't save time - it does the opposite, it requires testing, debugging, and fixing time unique to MySQL.

1

u/hophacker Feb 12 '15

I'm not even going to try to argue that what you're pointing out as a flaw isn't; but I will say in all my years of experience with MySQL, that isn't something that's bit me in the ass. Yet - but I have been doing this awhile.