News for hackers. Stuff that matters.
Re:MangoDB: An open-source MongoDB alternative by kumarvvr on Monday November 01, 2021 @09:42PM (#29075817)
I have seen multiple benchmarks that show PostgreSQL has better performance than Mongo in almost all use cases.

A simple wrapper in a language like Go or Rust is sufficient to surpass Mongo performance.

Personally, I have shifted database operations behind a GRPC service that uses Go language and PostgreSQL back-end. Allows me to customize the data store to suit the requirement.

PostgreSQL does not get enough love in this world.

Re:MangoDB: An open-source MongoDB alternative by rustnote on Tuesday November 02, 2021 @12:59AM (#29077278)
It's plenty loved, I'd say the most loved, but still a fair way behind Oracle in terms of popularity just because of legacy stuff. Damn legacy code, hecking JQuery was still the most used JS framework until just this year!
Re:MangoDB: An open-source MongoDB alternative by kvdveer on Tuesday November 02, 2021 @05:07AM (#29078750)
Oracle and popularity don't really go together. Oracle is really common, just like root-canal treatments. Wouldn't refer to either as popular, though.
Re:MangoDB: An open-source MongoDB alternative by kumarvvr on Tuesday November 02, 2021 @02:11AM (#29077670)
> but still a fair way behind Oracle in terms of popularity

I have a vague feeling that those who use Oracle are using it due to circumstance or corporate necessity.

Re:MangoDB: An open-source MongoDB alternative by pydry on Tuesday November 02, 2021 @03:54AM (#29078262)
One of the last straws for a job I had once was realizing that the oracle python client would convert money fields into float.

Oracle had its tentacles everywhere in that company. I think even they wanted to stop using it but it was just integrated to too much.

Re:MangoDB: An open-source MongoDB alternative by strictfp on Tuesday November 02, 2021 @06:21AM (#29079191)
Oracle is a hot mess but it also has some really powerful features, like table sharding , that actually works if you manage to set it up correctly.
Re:MangoDB: An open-source MongoDB alternative by keyle on Tuesday November 02, 2021 @01:27AM (#29077422)
To be clear, Oracle's popularity isn't popularity in the sense of popular folk love. Unless you mean popularity in the most rancid disgust available en masse.
Re:MangoDB: An open-source MongoDB alternative by SergeAx on Tuesday November 02, 2021 @01:11AM (#29077337)
> in almost all use cases

Including horizontal sharding and vertical replication out of the box?

Re:MangoDB: An open-source MongoDB alternative by mst on Wednesday November 03, 2021 @01:18PM (#29097621)
I've seen quite a few instances where a mongo deployment using both of those can comfortably be replaced by a single postgres primary (on about the same hardware as a single member of the mongo cluster) with a couple of read replicas and a connection balancer.

There are absolutely mongodb deployments out there that are at sufficient scale that they genuinely need those features in any storage backend, but I suspect the vast majority of them only need those features to work around mongo's mediocre straight line performance.

How close this comes to counting as "almost all" is of course highly arguable.

Re:MangoDB: An open-source MongoDB alternative by SergeAx on Wednesday November 03, 2021 @02:19PM (#29098429)
> can comfortably be replaced by a single postgres primary

And lose all the data in a single failure?

Re:MangoDB: An open-source MongoDB alternative by mst on Wednesday November 03, 2021 @09:16PM (#29102623)
I said a single -primary- and explicitly mentioned having replicas.

I'm very confused why you might think that could "lose all the data" from a single one of those nodes failing.

Re:MangoDB: An open-source MongoDB alternative by SergeAx on Thursday November 04, 2021 @02:56AM (#29104186)
I was reading your reply too quick, sorry. Anyway, even failover replication in PG is not there out of the box and have it's quirks.
Re:MangoDB: An open-source MongoDB alternative by mst on Thursday November 04, 2021 @08:57PM (#29114293)
I don't disagree at all with that statement although invetably what mongo does have out of the box definitely has its own quirks.

Getting operations right is tricky no matter what you're doing/using, and you always have to learn your backend's idiosyncracies no matter which one you choose.

Re:MangoDB: An open-source MongoDB alternative by kumarvvr on Tuesday November 02, 2021 @01:45AM (#29077524)
It has both, but not out of the box.
Re:MangoDB: An open-source MongoDB alternative by exelib on Tuesday November 02, 2021 @05:01AM (#29078712)
More info?
Re:MangoDB: An open-source MongoDB alternative by robertlagrant on Tuesday November 02, 2021 @03:56AM (#29078277)
What's vertical replication?
Re:MangoDB: An open-source MongoDB alternative by SergeAx on Tuesday November 02, 2021 @04:32AM (#29078510)
Having several read-only replicas in every shard to distribute reading load.
Re:MangoDB: An open-source MongoDB alternative by irq-1 on Tuesday November 02, 2021 @12:41PM (#29083705)
Off topic. What would you think of a 1 to 1 relation between gRPC functions and stored procedures? Keeping all the SQL together inside postgres is great for debugging and updates; you can see all dependencies. One to one would stop you from having to make a different API, and make the gateway a simple reusable service.