Live data from Hacker News

Thoughts on Uber’s List of Postgres Limitations

blog.2ndquadrant.com

91–100 of 108 posts

Re: Thoughts on Uber’s List of Postgres Limitations

#91

Earlier quoted context omitted.

While I mostly agree with your comment, some NoSQL databases are not suitable for analytics. Indeed, they are terrible at them. Unstructured information is, surprise, unstructured, which means it is harder to query / analyze, since the structure needs to be fully scanned and parsed to perform the computation. I have seen many cases where MongoDB is used for this and suffers from really bad performance.

I think the trap is simple POCS. Do a simple POC where you ram 1 million rows in a MongoDB and then make a webapp to do some basic analytics. Look, it works and get responses within a second. Cool! Then real data comes in at 12 billion rows and your analytics take 3 hours to run. So you try to do the sharding thing, and realize that it works for a while, except now every analytics query needs to hit every shard....

Absolutely true, and the scale keeps getting larger > 12 billion rows, and comes up with even harder challenges.

Worked on a 1.3 trillion row (for 1 table, others varying below this) database this year for predictive analytics, and it was mind boggling the hoops to jump through to try to get that thing to run anything in a manageable time frame.

Any POC level show of a database would be about meaningless at that scale. You have to do a real test to view the challenges around it.

Re: Thoughts on Uber’s List of Postgres Limitations

#92

Earlier quoted context omitted.

I think the trap is simple POCS. Do a simple POC where you ram 1 million rows in a MongoDB and then make a webapp to do some basic analytics. Look, it works and get responses within a second. Cool! Then real data comes in at 12 billion rows and your analytics take 3 hours to run. So you try to do the sharding thing, and realize that it works for a while, except now every analytics query needs to hit every shard....

Absolutely true, and the scale keeps getting larger > 12 billion rows, and comes up with even harder challenges. Worked on a 1.3 trillion row (for 1 table, others varying below this) database this year for predictive analytics, and it was mind boggling the hoops to jump through to try to get that thing to run anything in a manageable time frame. Any POC level show of a database would be about meaningless at that scal…

Which database did you use and what would you recommend?

Re: Thoughts on Uber’s List of Postgres Limitations

#93
post #20
post #7

I think its worth mentioning again that what Uber ended up using has no resemblence to an RDBMS (single table, manual indexes). So regardless of whether their complaints are justified or not, it should not be taken as an endorsment of mySQL over postgres, but rather of an endorsement of NoSQL over RDBMS . Which is really just what every company at these scales do (except for google and f5 if whitepapers are to be con…

Uber runs a lot of databases in production. We stopped using Postgres a while ago for new applications that talk SQL, and this article explains some of the reasoning. We still have many applications that talk directly to MySQL, and we still have our original API monolith that talks directly to Postgres. All new applications are being built using distributed databases like our in-house Schemaless system which happens…

Does Uber still use Python for backend services?

Re: Thoughts on Uber’s List of Postgres Limitations

#94
post #87
post #46

Earlier quoted context omitted.

> If there is a product that does what they need, why spend resources improving another. I would hardly say MySQL does what they need without any improvements. They built an entire second platform on top of it. https://eng.uber.com/schemaless-part-one/

MySQL does need improvements. This [0] is an example. [0] https://github.com/facebook/mysql-5.6

Isn't MySQL owned by Oracle and closed sourced as a result these days?

Re: Thoughts on Uber’s List of Postgres Limitations

#95
post #39
post #22

Earlier quoted context omitted.

you can use pg_upgrade with -k - it will complete within seconds. Afterwards, things will be slow until a complete analyze updates the statistics, but the update itself can be done in seconds. I have updated ~2TB of database from 9.0 all the way to 9.5 over the years.

The problem with this is that if anything fails, you can potentially corrupt your data and have no backup plan. To make that option safe, you would have to copy your data directory first, and you need to be offline for that. So you have to add the time it takes to make that copy.

[deleted]

Re: Thoughts on Uber’s List of Postgres Limitations

#96
post #87
post #46

Earlier quoted context omitted.

> If there is a product that does what they need, why spend resources improving another. I would hardly say MySQL does what they need without any improvements. They built an entire second platform on top of it. https://eng.uber.com/schemaless-part-one/

MySQL does need improvements. This [0] is an example. [0] https://github.com/facebook/mysql-5.6

MySQL does need so much improvements

https://dom.as/2016/08/03/mysql-does-not-need-sql/

Re: Thoughts on Uber’s List of Postgres Limitations

#97
post #8

Does anyone know the back story to Uber - why didn't it try to improve Postgres rather than move on to feed on another host?

because they couldn't find what they were looking for in Posgres forum

And we all know Uber cannot afford a couple of hours of professional PostgreSQL consulting.

Re: Thoughts on Uber’s List of Postgres Limitations

#98
post #68
post #54

To me, the real news is that Uber ($50B company) didn't bother to engage the postgres community before migrating - they'd have jumped to support Uber.

I don't get the sense that Uber has had much stability in technical leadership over its lifetime. Big moves like this can be as much cultural as technical.

What would be better to have in resume, "we were using PostgreSQL and after some tuning it worked just fine" or "we designed and implemented scalable modern BigData realtime OLTP solution"?

Re: Thoughts on Uber’s List of Postgres Limitations

#99

Earlier quoted context omitted.

I don't know, if you're going to critique the very talented engineers at Uber, seeing your blog fall over due to capacity doesn't lend you a lot of credibility.

On what information do you base your opinion that the engineers at uber are very talented? So far what i have seen, the only thing Uber is talented at is violating local laws and then throwing sacks of money at it to pay fines or whatever. (and inflating their own (bubble)value, but probably not many people agree with that) Seeing their blogs mysql-> postgres followed by a postgres -> mysql migration, doesn't give me…

I'm not sure what anything you said has to do with their choice of database.

Re: Thoughts on Uber’s List of Postgres Limitations

#100

Earlier quoted context omitted.

On what information do you base your opinion that the engineers at uber are very talented? So far what i have seen, the only thing Uber is talented at is violating local laws and then throwing sacks of money at it to pay fines or whatever. (and inflating their own (bubble)value, but probably not many people agree with that) Seeing their blogs mysql-> postgres followed by a postgres -> mysql migration, doesn't give me…

I'm not sure what anything you said has to do with their choice of database.

Then with your own reasoning, i'm also not sure that is worth a comment of yours.

I clearly indicate their recent changing of db software twice to avoid issues (experts could solve) is an indication one in my eyes is not very talented.

Post reply on HN