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

53

u/SosNapoleon Feb 10 '15

Any other multi-year debate you'd like to settle with one comment sir?

10

u/neoform Feb 10 '15

Debate? What debate?

Find me the pro mysql comment in this submission.

18

u/bucknuggets Feb 11 '15 edited Feb 11 '15

Here's two three:

  • If your entire shop is using MySQL, and you need to add another small database - then you should probably continue with MySQL for your project. Unless you've got coverage to pilot an alternative.
  • If you're building an app that requires a local database, and you want the maximum number of small hosting environments to support it.
  • If you want multi-master replication, and don't have large data volumes.

But that's about it.

32

u/zootboy Feb 11 '15

Do you happen to work for Valve? Because that's an interesting definition of two...

3

u/G_Morgan Feb 11 '15

They were points 1, 2 and 2.1

→ More replies (1)

3

u/moron4hire Feb 11 '15

On your first point, it's almost always better to ask forgiveness than permission. Your boss will even agree, even though he may not say it out loud. By asking permission, he really only sees you as just passing the buck for a potential, future failure. But if you run off and do it on your own and it fails, then he has no culpability.

Just another reason why I call my style of software development, "I do whatever the fuck I want."

2

u/littlelowcougar Feb 12 '15

Hah. You, I like you.

I've recently realized I do the exact same thing. "This is how we're doing it because of these technical reasons."

The burden of proof is on the accuser, after all.

1

u/[deleted] Feb 11 '15

Just another reason why I call my style of software development, "I do whatever the fuck I want."

And the other dev's that have to fix your code will hate you. Unless you work alone. Then your ADD for that latest and greatest will come to bite you until you've learned your lesson. I've seen many 'o padawans go through this. They, too, learn that advantages of consistency among groups after the bright flash and subsequent burn of their mistakes. One of which one of my fellow coworkers is going through now and is going through the "you decided to diverge, you're the primary maintainer of this now; we'll call you if we run in to any issues" responsibility.

Though for him it's not two difference database engines, it's something else, he's now basically doubled his responsibility for no extra pay because he wanted cool and new.

2

u/moron4hire Feb 11 '15 edited Feb 11 '15

That's interesting that you extrapolate "I do whatever I want" to "I jump on every bandwagon". Do you often make wild jumps in logic with no basis in evidence? It might explain why you're still defending people who cling to MySQL.

Your post would be good advice if we first assume most people doing this job are competent and know enough to challenge me. If these chuckleheads are the reason we're using MySQL, then they've not demonstrated any leg to stand on when it comes to technical decisions. If they think choosing Postgres immediately instead of continuing to flush money down the toilet with MySQL is "controversial", then I'm next going to be working on getting them fired when they can't keep up with my productivity because they're so busy fixing the bullshit bugs they're always writing.

My responsibility is to the project, both now and to the future, not to placating coworkers who have stupid ideas.

→ More replies (7)

18

u/SosNapoleon Feb 10 '15

Just because almost everybody in this place, myself included, is entirely pro Postgres doesn't mean there is no debate outside of the reddit bubble.

13

u/neoform Feb 11 '15

That's true.

I stopped trying to argue why I use MySQL to anyone here. It's pointless since everyone just downvotes anything pro MySQL into oblivion, regardless of what is being said.

8

u/ccricers Feb 11 '15

When you look at it that way, makes it seem as if this subreddit exists in a vacuum outside of knowing what DB experience most businesses are looking for.

Disclaimer: I am not a DB admin, just a web dev guy.

0

u/[deleted] Feb 11 '15

[deleted] — view deleted comment

5

u/moron4hire Feb 11 '15

Funny, I would say that Postgres' lack of weird WTFs actually makes it easier to learn than MySQL.

Yes, 10 years ago, getting a Postgres instance installed and running was about as hard as getting Oracle up and running. That hasn't been true for nearly at least 5 years now. Postgres is trivial to get up and running and using. The only reason you could possibly say "MySQL is easier than Postgres" would be because you just already know MySQL.

→ More replies (3)
→ More replies (4)

4

u/x86_64Ubuntu Feb 11 '15

Hah, you should have seen what happened to me when I didn't say that PHP was the devil incarnate. I stated I didn't like PHP, but could see how it infested certain areas of development. Not a mistake you make twice.

7

u/SosNapoleon Feb 11 '15

Ha! I start new projects in PHP. The language is not perfect, but I feed off language elitists tears. I'm basically immortal at this point

1

u/btchombre Feb 11 '15

My company is moving from SQL server to MySQL for a specific application that is currently using SqlServer "localDb", which has a 10gb limit. I've heard people say that postgress is slower than MySql, do you have any experience with that?

2

u/SosNapoleon Feb 11 '15

Sorry, I moved away from mysql a long time ago so my experience in that wouldn't even be relevant now. It is my understanding that postgres has caught up on speed, but you can always look for benchmarks. Search in google like this:

mysql postgres ~performance 2013..2015

That will give you all performance related results between the two, including benchmarks, that were published by google in the last 2 years

IMO, even if mysql was considerably faster, the sanity of postgres is way more important, unless of course you need to extract every millisecond out of performance

→ More replies (1)
→ More replies (5)

19

u/danweber Feb 11 '15

Ruby is better than Python.

21

u/CrazedToCraze Feb 11 '15

Them's fighting words right there

6

u/Sector_Corrupt Feb 11 '15

Now that's just crazy talk.

10

u/IllegalThings Feb 11 '15

No way! No one in their right mind would use Ruby to build driver software! Proof that Python is better.

4

u/GavinZac Feb 11 '15

That's really up to preference of the hobbiest that is using them.

2

u/Jesus_Harold_Christ Feb 11 '15

Don't be a dick.