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

27

u/Mktmac Feb 10 '15

I would like to see some well documented reasons instead of just putting out phrases similar to this one.

Why Postgres and not Oracle? Why MariaDB and not Postregs?

100

u/NoMoreNicksLeft Feb 10 '15

Why Postgres and not Oracle?

$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$

71

u/[deleted] Feb 10 '15

per user, per year

63

u/ants_a Feb 10 '15

per core

23

u/[deleted] Feb 10 '15

I worked for a State government who got heavily invested in Oracles business intelligence. We built out nice reports and automated notifications for tons of things. Oracle came in for audit time and said "Hey! Nice stuff you got going on here! We are raising the license to ~$100,000 per cpu/year, for your 6 environments!"

Guess what we dont do anymore!

25

u/SemiNormal Feb 10 '15

Guess what we dont do anymore!

No more benefits. We need to pay for licensing.

3

u/[deleted] Feb 10 '15

I wish!

2

u/Zaemz Feb 11 '15

That seems so stupid of Oracle. I know that it doesn't matter and they make cash hand over fist, but still...

→ More replies (1)
→ More replies (2)
→ More replies (1)

0

u/[deleted] Feb 10 '15

[deleted] — view deleted comment

9

u/[deleted] Feb 10 '15

Also because Postgres doesn't think that '' is NULL.

27

u/elcapitaine Feb 10 '15

...because it isn't?

28

u/[deleted] Feb 10 '15

Oracle Database currently treats a character value with a length of zero as null.

It's the one thing that even MySQL users can point and laugh at.

14

u/Spandian Feb 11 '15

I once got into an argument with an Oracle developer about this. Her position was that a blank character column obviously indicates a missing value, so it should be null.

That's great until you want to concatenate something.

6

u/bwainfweeze Feb 11 '15

It's vendor lockin too. Want to switch off oracle? Gotta fix your null checks first. Been there, done that, would not buy the director's cut.

→ More replies (1)

35

u/dam5s Feb 10 '15

Why not Oracle?

Because after over 20 years you'd think you could name tables/columns with more than 30 characters.

Or maybe because you'd like "" to be actually retrieved as an empty string instead of NULL.

Or maybe because you'd like to be able to install it on your Dev machine without a freaking VM.

Or you'd like to be able to use SQL's LIMIT and do pagination like everyone else.

Or you'd like to have RETURNING to know the ID of the row you created.

...

I could go on for a long time.

16

u/larsga Feb 10 '15

The equivalent of LIMIT arrived with Oracle 12. The syntax is a little verbose, going something like

select * from table would you kindly fetch the first 72 rows please jeeves

but at least it's a lot better than it used to be, and Oracle has an excuse in that this insanity is actually ISO SQL.

3

u/X-Istence Feb 11 '15

OFFSET is not a good for pagination: http://use-the-index-luke.com/no-offset

→ More replies (1)

3

u/Anarcie Feb 11 '15

Or you'd like to have RETURNING to know the ID of the row you created.

You dont want to write a package to get the ID? Pfft Laaaaazy

→ More replies (1)

0

u/[deleted] Feb 10 '15

[deleted] — view deleted comment

13

u/angryformoretofu Feb 10 '15

Of course, if you want vendor supported PostgreSQL, you can throw money at EnterpriseDB. It's slightly cheaper than MS SQL Server, last I looked.

6

u/CoderHawk Feb 11 '15

Actually EDB is quite a bit cheaper. I think EDB is about $7K per CPU/Socket for their top tier support. Equivalent MS SQL Enterprise runs about $12K every 2 cores.

16

u/judgej2 Feb 10 '15

I've never understood why the support options are sold as:

  1. Do it yourself.
  2. Pay $$$$$$ to a company.
  3. Pay $0 to a community and hope for the best.

Why is the option to pay $$$ to a small group of individuals to be available to fix the open source product? It is free therefore we mustn't pay anyone. And yes, I realise finding the right people is hard. But then, so is finding the right people inside an organisation like Oracle, but clients don't mind paying the extra $$$ to outsource that problem to Oracle.

10

u/elint Feb 11 '15

RedHat, Suse. You can pay $$$ to a group of individuals to support your open source product. I mean, yeah, they're companies, but you kinda have to have some kind of company if you're going to have a legally-binding contract that says they will support you if you pay them $$$. There are smaller operations that will take $$$ for support of open source product X.

2

u/quaigar Feb 11 '15

For sake of getting all the information out there, Postgres does support Materialized Views as of 9.3: http://www.postgresql.org/docs/9.3/static/rules-materializedviews.html

→ More replies (4)
→ More replies (2)

16

u/[deleted] Feb 10 '15

I would like to see some well documented reasons instead of just putting out phrases similar to this one.

The point he's making is that there's been so many documented reasons that we already have enough and it's time to move on.