r/programming • • Mar 07 '16

Announcing SQL Server on Linux

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

871 comments sorted by

View all comments

0

u/[deleted] Mar 08 '16

[deleted]

12

u/jmickeyd Mar 08 '16 edited Mar 08 '16

Is performance a meaningful way for you? Because there are a huge number of cases where ms sql is much faster than postgres.

Edit: Sorry, I didn't intend to sound snarky. I was seriously asking whether raw performance was a significant metric. The existence of programming languages such as Ruby show that usability and velocity are more important than performance in a lot of cases.

0

u/[deleted] Mar 08 '16

[deleted]

12

u/jmickeyd Mar 08 '16

A lot of them stem from SQL Server having optional MVCC whereas it's the only mode in Postgres. If you have a covering index which sees writes frequently enough that Postgres's visibility map can't be used (you write to pages after auto-vacuum) Postgres is forced to do a heap lookup to see whether each tuple is visible in the current transaction. In the most degenerate case SELECT COUNT(1) FROM table is O(1) in SQL Server and a full table scan in Postgres.

2

u/doublehyphen Mar 08 '16

On the other hand having MVCC turned off gives a huge performance penalty for concurrent read/write loads and I would advice people to run SQL Server with MVCC tuned on, unless they really know what they are doing.

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