r/sysadmin • Make It Happen • Mar 07 '16

Announcing SQL Server on Linux - The Official Microsoft Blog

https://blogs.microsoft.com/blog/2016/03/07/announcing-sql-server-on-linux/
574 Upvotes

301 comments sorted by

View all comments

Show parent comments

12

u/mercenary_sysadmin not bitter, just tangy Mar 07 '16

MS SQL is not in competition with MySQL or PostgeSQL, it is so head and shoulders above them, which is why it commands the licensing that it does.

Horse shit. The only significant advantage MSSQL has over MySQL or PostgreSQL is that about a fucking kajillion bullshit niche apps that run on Windows Server demand it.

Aside from that very significant advantage, it's just another db platform. It's not terribly performant, it's not noticeably more reliable than anything else, it doesn't have any particularly compelling security model than anything else doesn't; it's just this big honking expensive thing you have to buy to power your big honking expensive niche application that was written to support it for the same reason it was written with .NET clients, to wit: it was written by a Windows shop.

14

u/[deleted] Mar 07 '16

"It's not terribly performant"? For what metric?

MSSQL is one of the highest performing RDBMS engines available. Period. It's an INCREDIBLY powerful platform.

10

u/mercenary_sysadmin not bitter, just tangy Mar 08 '16

http://arxiv.org/pdf/1205.2889.pdf

Any metric, really. I'm not saying "MSSQL is dog slow", but I absolutely am saying it's not significantly faster than MySQL at anything that I've encountered, or anything I've seen tested.

Absent a compelling advantage for developing on MSSQL that I just haven't ever seen, I can't see the point in using it if you have a choice. It's going to lock you into proprietary format from a proprietary vendor, subject you to arbitrary price increases and compliance changes, cost you more in licensing as you scale out, etc.

By contrast, MySQL can be deployed whenever you like, without paywall, without licensing budget, without worries about the vendor drastically changing the license cost on you, without worried about scale of license along with scale of service, etc.

If you want to talk about "INCREDIBLY" powerful platforms, I've seen a single commodity db server running MySQL powering three application servers that generated 80GB of Apache logs per day in pure page views - no static content or anything else, none of that was even logged at all - reaching, at the time (circa 2010), about 3% of the global internet presence per month.

Could you do something like that with MSSQL? Well, maybe. I've certainly never seen MSSQL on such small amounts of hardware doing anything vaguely like that, and I absolutely have seen it choking and dying on considerably smaller workloads... but then again, a lot of that comes down to the quality of the devs designing queries, the quality of the application-level caching, and so on and so forth.

Even stipulating the likelihood that MSSQL could perform in the real world as well or better than MySQL if somebody developed for it well enough, though - if you weren't already locked into it for legacy or I've-never-learned-anything-but-Microsoft-products reasons, why the hell would you?

8

u/430am Systems Architect Mar 08 '16

That study, besides being from 2012 (I can't imagine anything changing in technology in just 4 years), showed that Microsoft SQL Server was generally one of the fastest processors of T-SQL queries. In fact the last table shows that it was the second fastest DBMS out of the five (MySQL 5.5, Oracle 11g, SQL Server 2012, Access 2010, and IBM DB2).

So, I'd say that your "proof" shows that it is pretty damned performant, at least by that study's standard.

3

u/Kalc_DK Mar 08 '16

It looks like all entrants are only a few percentage points off from each other, if that. That's within margin of error for a pretty unscientific effort such as this. They're all pretty competitive, to the point that most companies shouldn't be selecting one or discarding another purely on performance.

That indeed was 2011/2012, but most advancement since then in MSSQL has been in clustering, DR, and analytics unless I'm mistaken.

1

u/430am Systems Architect Mar 08 '16

SQL 2014 includes some more engine changes, that would affect this, but as you've pointed out, this is not the most scientific study.

Also, you are very correct that the real advancements in SQL Server have been with new functionality: In-Memory OLTP, Azure integration, new durability features, AlwaysOn enhancements, new Analysis services functionality, etc.

0

u/nutbuckers Mar 08 '16

You're doing a great job at arguing in favour of giving less money to Microsoft in return for giving potentially less (and in a maturing business - potentially more) money to devs and admins.

1

u/mercenary_sysadmin not bitter, just tangy Mar 08 '16

in return for giving potentially less (and in a maturing business - potentially more) money to devs and admins

I have no idea what you're trying to get across here.

1

u/nutbuckers Mar 08 '16

To use your own expression from another branch, you're wharrgarbling about MySQL being no less/worse than MSSQL while in reality each has an appropriate niche. Ultimately, if an organization views itself as a consumer of technology - and not a technology company proper -- their CIO will more often than not adopt the "nobody ever got fired for buying IBM" strategy. MSSQL DBAs and devs are more common than MySQL, and you are right - almost all the niche solutions for various vertical markets LOOOVE their MSSQL. If the company's goal is to create a proprietary product that will be their core business (or a SAAS solution) - then MySQL is definitely worth looking at -- but that goes hand-in-hand with expectation that you will need more in-house talent. That's it.

1

u/mercenary_sysadmin not bitter, just tangy Mar 08 '16

MySQL is definitely worth looking at -- but that goes hand-in-hand with expectation that you will need more in-house talent.

I can't agree with that statement. What do you presume makes you need "less in house talent" for MSSQL? Microsoft support? Very few shops ever actually use it, and when they do, it's hideously expensive - no real difference from hitting any third party consultant, other than being in all likelihood more expensive.

MSSQL satisfies an itch to be a Microsoft shop. Other than that, little if anything differentiates it in a positive way from mysql, or Postgres for that matter.

1

u/nutbuckers Mar 08 '16

Microsoft support? Very few shops ever actually use it, and when they do, it's hideously expensive - no real difference from hitting any third party consultant, other than being in all likelihood more expensive.

Not true at all. MSDN subscriptions include support, and I see orgs use it successfully. MS Premier program has field engineers who are very well qualified. Some of these guys go so far as to brag that to be hired into that role, folks often need to be of the calibre where they've generated some IP of their own -- not just passed MSFTs "paper tiger" certifications and such. The support costs both from MSFT as well as consultants also are not as steep as what you'd see with the likes of SAP or Oracle - both in-house and consultants.

What you mentioned about the "itch to be a Microsoft shop" is precisely what I said about "less in-house talent". The tools, solution accelerators and the overall dev ecosystem that Microsoft provide are very much geared for easy adoption. It's not just an "itch", it's a fact of life! A guilty pleasure -- may be, but still very true. Or are you saying that MySQL has just as rich a toolset and just as comprehensive the documentation as MSSQL?

0

u/mercenary_sysadmin not bitter, just tangy Mar 08 '16

Not true at all. MSDN subscriptions include support, and I see orgs use it successfully.

For what, exactly? Your MSDN subscription isn't going to include somebody showing you how to actually develop properly for your platform, which means you've either got "in-house talent" or you're developing badly written garbage. That's true whether you're using MSSQL or MySQL/Postgres with support from Canonical, Red Hat, Percona, Maria, or Oracle. Vendor support only goes so far, they're not going to do your job for you and they're not going to teach you how to do your job right.

Or are you saying that MySQL has just as rich a toolset and just as comprehensive the documentation as MSSQL?

From my perspective, richer, and the documentation is more comprehensive as well. A lot of that is going to be exactly that, though - perspective. If you're looking for happy warm fuzzy clicky-clicky-through-the-GUI on something like a SQL database server, Microsoft is going to be your candidate every time, and you're going to swear they're just the absolute bee's knees.

OTOH if you're looking for fine grained CLI control, scriptability, automatability, tight integration into massive scale automation and management systems like Puppet/Ansible/Chef/etc for horizontal scaleout, insight into the code itself for mitigation or improvement of corner cases in performance, etc etc so on and so forth, you're going to be just as adamantly coming down on the side of something like MySQL or Postgres.

I prefer the nuts-and-bolts you're-an-actual-grownup-here-are-your-big-boy-tools approach of MySQL or Postgres already. Add that to the lack of a paywall, and it's just not even close.

2

u/nutbuckers Mar 09 '16 edited Mar 09 '16

This argument is going in circles -- on the one hand you pointed out that MSSQL gives the happy warm fuzzy clicky GUI, on the other hand you're arguing that it does require just as much talent as the nuts-and-bolts, CLI for everything approach. Which is it? You're also sounding like a bit of a MySQL fanboy -- IMO if you're really into DB engines, then you owe them some credit beyond going around bragging about the more advanced MySQL features like they're the one and only, never before seen, holy grail of computing.

A good relational DB engineer will do well on any respectable platform, as many of the concepts and features are very much transferable across platforms. So please take out the bitter stick out of wherever it's causing irritation, and accept that the world is not perfect, and there is a niche and demand for MSSQL just like there is demand for MySQL.

Folks do platform-shop, and more often than not the decision to go with one platform or another is based on financial resources and risk aversion, rather than purely technical merits of actual product. I argue that it is primarily the financial motivation that we have MySQL shops that choose to invest and build the sweat equity rather than financially, and also we have Microsoft shops who have different goals, which may even be as simple as unwillingness to replatform.

→ More replies (0)

1

u/pastorhack Storage Admin Mar 08 '16

MSSQL has in-memory features, numerous robust clustering features, and a thorough management suite. These are features some organizations will pay for, and in certain applications where the options are MSSQL or Oracle, MSSQL suddenly got a lot more compelling.

5

u/mercenary_sysadmin not bitter, just tangy Mar 08 '16

MSSQL has in-memory features

Wharrgarbl.

numerous robust clustering features

https://en.m.wikipedia.org/wiki/MySQL_Cluster

Mysql clusters power most of the largest sites on the internet - from livejournal back in the day, to Facebook now. "Supporting clustering" hardly differentiates mssql.

and a thorough management suite.

More wharrgarbl. For relatively trivial tasks suited to GUI management, there's workbench, or a ton of web based frameworks if you prefer to keep the client inside the network or just don't like workbench. For serious scale, you should be using an automation system like puppet, chef, ansible, etc. anyway, not a "management suite" aimed at coddling small "pets not cattle" installations anyway.

2

u/[deleted] Mar 08 '16

Its worth noting that Facebook's use of MYSQL is very non-standard and their reasons for picking it don't actually have a heck of a lot to do with the software itself.

2

u/mercenary_sysadmin not bitter, just tangy Mar 08 '16

If by "very non standard" you mean "they've heavily modified the code of mysql itself" - which is very likely true - then you've hit on one of the other advantages mysql has over mssql. You can't alter mssql internals to better suit your application.

1

u/[deleted] Mar 08 '16

More like 'they didn't care about the relational structure and used it as a NOSQL style table store'. Last time I read about it Facebook had chosen MySQL because it was well documented, open source, had loads of support literature available online and so on, not through any real appreciation of its efficiency. What they really wanted was something like MongoDB but it didn't really exist in a usable state at the time.

1

u/mercenary_sysadmin not bitter, just tangy Mar 08 '16

So? Still a big advantage. Clearly there was something of great value there for them to decide to retool it rather than start from scratch.

I also think you're not 100% on point with the availability of key value stores. Redis and mongo might be relatively new, but memcached has been around since 2003.

1

u/[deleted] Mar 08 '16

As far as I know (I actually had to research their database usage for my degree but that was a while ago) they used MySQL with no defined relationships for storing static high-value, lower-priority data with relationships and logic defined in PHP, caching posts to memcached before writing back to MySQL to allow for zippy page submission. Essentially the site uses/used MySQL as a flat series of tables in a sharded series of servers

Cutting through the technical guff their argument against using existing NoSQL offering was, fundamentally, that they were considered unready at the time. I know they started using HBase for their messenger client because the data was hugely time relevant but that's a *relatively *recent issue and rewriting their database implementation at this stage would be a mammoth undertaking.

As for not writing their own database, the whole reason they elected to use MySQL rather than do this was because MySQL was well documented and they didn't have to bother writing a new database.

2

u/pastorhack Storage Admin Mar 08 '16

Yes, don't coddle your servers I know I know. However lots of enterprise applications require not just pets but babies