当前位置:网站首页>The resignation of the chief oracle engineer was furious: MySQL is a terrible database, so it is recommended to consider PostgreSQL!

The resignation of the chief oracle engineer was furious: MySQL is a terrible database, so it is recommended to consider PostgreSQL!

2022-06-12 01:28:00 Java technology stack

Click on the official account ,Java dried food Timely delivery 4cd3b6205e8bb9029abe920a74c7d3f8.png

Reprinted from InfoQ, Arrangement | Yan Shan 、 Nuka Cola

In the opinion of the engineer ,PostgreSQL Is open source RDBMS Better choice for .

What will database engineers do when they leave ? Get a card 、 Put away commemorative gifts , Maybe there's another bottle of practice wine —— But the protagonist of today's story also posted a post , I gave vent to the technology I had studied for five years .

Oracle Former chief software engineer and MySQL Optimizer team members Steinar Gunderson In the post, he said that the reasons for his resignation were complex , But I want to talk here “ Five years of truth ”——“MySQL It's a terrible database , We strongly recommend that you seriously consider switching to PostgreSQL.”

have a look MySQL Outside the vast world

This is now at Google Chrome The team's engineer said :“ Use MySQL It's like walking into a parallel universe , Many people here believe from the inside out MySQL Is the most advanced database product . But I can't , In my work, I often need to explain the internal working principle of the optimizer to the audience , So I can especially feel MySQL How original the designs are .”

Gunderson To be frank MySQL Your code still has “ There's a lot of room for improvement ”,“ The company's management has also been supporting large-scale restructuring ”. He further Tucao to make complaints about :“ What really bothers me is those who insist MySQL All good guys ( It seems that most MySQL Users and developers haven't used other databases at all ). Even executor This explosive thing —— The whole big lump 、 The functions of various components are intertwined with each other —— Can be called ‘ Efficient ’( The opposite is true ).”

in addition ,MySQL All the interview questions and answers have been sorted out , WeChat search Java Technology stack , Send it in the background : interview , You can read it online .

For all that ,Gunderson Still on their own MySQL Proud of your contribution to the project , He said he was involved in MySQL 8.0 The version does “ Than 5.7 The version is much better ”, And it's still improving , but “ That's all we can do ”.

“ My colleagues and I have been trying to make MySQL The optimizer can achieve 2000 Standard design level at the beginning of the year , Also made a lot of good adjustments , But that's it .”

“ Final , We found that whether it's a strong talent pool or Oracle Ambition to win the cloud , Not enough to think MySQL Strive for sufficient reconstruction resources 、 Naturally, we can't make it a truly competitive product .” but Gunderson It also means that I don't want to MySQL Belittled to nothing , If someone is using MySQL And if you feel good, you can continue . He just wants everyone to “ I can walk in circles occasionally in my spare time , have a look MySQL Outside the vast world ”.

MariaDB Not much better ?

MySQL The creator of this is David Axmark And Michael Widenius, The original version dates back to 1995 year . And its parent company 、 Swedish start-ups MySQL AB On 2008 By the Sun Microsystems Acquisition ,Sun He was recruited by Oracle a year later . The latest interview questions have been sorted out , You can Java Interview library applet online brush questions .

After the acquisition ,Michael Widenius from Sun quit , Yes MySQL Forked , Hence the MariaDB, At the same time, he set up another team MySQL The development team . After that ,MariaDB Just take the hosting service DBaaS Continue to release their own in the form of MySQL Iteration version .

however Gunderson Yes MariaDB There's nothing good to say .“ Don't think MariaDB Just like MySQL How much good .Widenius And his team left because they were dissatisfied with the new governance model , Not because they suddenly wake up 、 Find out how much confusion and hidden dangers you have buried in your code .”

for example , Because there is no modular design , The classifier needs to identify whether the input content comes from table scan or range scan . And any input that does not belong to these two categories ( Include joins) All need major adjustments . So if you don't rewrite the query , It is simply impossible to perform in an existing design full outer joins( Until now, MySQL And still don't support outer joins, But at least the team has realized and acknowledged the existence of this problem ). also ,“ I can't even use ‘ section ’ System , This is the most outrageous situation I have ever seen in the real world .”

in the light of Gunderson The ridicule ,MariaDB Co founder and vice president of product management Max Mether towards TheRegister Response statement :“ No database is perfect . Different models 、 Storage engine 、 dialect 、 The proliferation of agreements proves this .”

Max Mether And he said :“ No matter what you think , stay Oracle Under the MySQL Never ‘ helmsman ’, Almost abandoned internally , I've been attacked on a very large scale before , The engineer's post once again strengthened my understanding of MySQL The view that these events occurred .” He pointed out that ,MariaDB stay 2016 I completely gave up the previous MySQL Code , And introduced a new storage engine 、 dialect 、 The monitor , Even workload analysis based on machine learning .

Click on the official account ,Java dried food Timely delivery 7f7ae86c3a87b92906bf29c8de5446f8.png

No smoke of war

MySQL and PostgreSQL Are currently the world's most popular databases .Gunderson There is no specific explanation for why both are open source relational databases PostgreSQL than MySQL Much better , But his views have indeed been recognized by many practitioners .

Held not long ago Postgres Build 2021 At the conference ,SIB Visions company CEO Roland Hörmann It specifically discusses how to start from Oralce Migrate proprietary databases to PostgreSQL Issues .

Hörmann Our company specializes in developing Oracle To Postgres The migration tools , He said in an interview that “ Whenever a customer asks him which database to choose for the project , My answer is always Postgres; Even in contact with Oracle Twenty years later , My answer is still the same . It's open source 、 Easy to implement and getting better , There is no reason not to choose Postgres.”

“ People always get support when they need it ; And when building the database , Only need to be configured once PostgreSQL conf file , It can run forever . It's that simple , Although you still have to set backup and other functions during the period , But at least don't waste too much valuable time of experienced database administrators .”

But look at it from another angle , It's not really “ A choice ” Choice question .Uber Zeng MySQL go to PostgreSQL , Finally, from PostgreSQL go to MySQL, There's always a lot of information on the Internet MySQL contrast PostgreSQL The argument for . As two mainstream open source databases ,MySQL and PostgreSQL Of “ The war ” Never stop .

front Airbnb Technology Manager 、 Zhu Yun, a computer doctor, once expressed his views on this in the geek time column , similar Uber Two high-profile transformations , Where she used to work Square The company has also happened .Square The first one to use is MySQL, here we are 2012 year , because PostgreSQL Its various advantages are becoming more and more prominent —— For example, for geospatial (Geospatial) Data and search support , At that time, several senior engineers also began to advocate vigorously , Many new services try to use PostgreSQL.

Come to see her , Both have their own characteristics , Some technologies are implemented in MySQL It's more convenient in , Others are the opposite . No matter what kind of data storage , There is always a solution to the problem , I don't think I have to choose one .

therefore , She believes that both have their own advantages and use scenarios , There is no claim that a database has an overwhelming advantage over another .“ For most programmers , Which database does the company use , You don't have to decide .

When you join a company , Unless it's a startup , Or you are CTO、VP、 Director level , Otherwise, most of the technology selection should have been settled . Especially databases , Once you choose , The cost of relocation is very high . therefore , Unless there are subversive advantages or insurmountable problems , Few companies take the time and effort to make such a big move .”

Zhu Yun also said , Whether it is technology selection or technology transformation , One of the factors that cannot be ignored is : Which technology is easier for your engineers to master , Or what kind of technology do decision makers with voice prefer .

This is actually similar to the selection of programming language .“ If a company's database never goes wrong , That must be because there is no business volume or traffic . Selection and design of all technologies , Has its application scenarios , Except for those happy cases , There is no doubt that the rest is a pit . How to avoid these pits as much as possible , How to fix problems as quickly as possible , These are crucial factors .”

Reference link :

https://blog.sesse.net/blog/tech/2021-12-05-16-41_leaving_mysql.html

https://www.theregister.com/2021/12/06/mysql_a_pretty_poor_database/

24d3a39a7f4dfbe411f7a4d629a9689b.gif

283de69eb22899600a4b8694a6313baf.png

Good start ! Reissue 10,000 Red envelope cover

2021 What happened in 10 It's a technical event !!

23 Design mode and Practice ( Very comprehensive )

replace Log4j2!tinylog Born in the sky

Goodbye, single dog !Java Create the object's 6 Ways of planting

Explode !Java Xie Cheng is coming

Weigh on Guan Xuan :Redis Here comes the object mapping framework !!

Recommend a code artifact , Save at least half the amount of code !

Programmers are proficient in various technical systems ,45 It is difficult to find a job at the age of !

Spring Boot 3.0 M1 Release , Formal abandonment Java 8

Spring Boot Learning notes , This is so complete !

Focus on Java Technology stack, see more dry goods

585a8c3f595c15dc6a1a8f381b8d3d38.png

40ccf91780b647fdf720f9bceab90508.gif

obtain Spring Boot Practical notes !

原网站

版权声明
本文为[Java technology stack]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/03/202203011346175446.html

随机推荐