Live data from Hacker News

Homebrew removes MongoDB from core formulas

github.com

1–10 of 291 posts

Re: Homebrew removes MongoDB from core formulas

#7
With MongoDB's license there is another reason to migrate away from it. I migrated an app from MongoDB to postgres. I ended up just using a varchar to store the IDs. The Mongo style IDs are in addition to an integer primary key, so joins happen with integers, but every time a user is shown the IDs, in the URLs, it's a BSON ID. It hasn't caused any issues, performance or otherwise, but there are thousands rather than millions of records. It's because of Django, not postgres, that I decided to use varchars to store the IDs rather than bytes or integers. Django is flexible but there are always tradeoffs from going outside the framework. Finally, and this is my favorite thing about how I went about it: all BSON ids have the column name of "id" and all integer primary keys have the column name of "pk", whether or not they have a BSON ID (through tables don't need their IDs exposed to the API).

Re: Homebrew removes MongoDB from core formulas

#8

What are the best alternatives to mongo db going forward? Are there any forks with momentum?

depends on your requirements

IMO the use case for mongodb in its heyday was great support for schema-less storage, which was perceived as a way to give your team velocity. And also great support for operating a cluster over primary keys.

(The performance story vs SQL is overstated -- a lot of their early benchmarks were from tuning down safety margins like fsync. You can do that in SQL DBs too).

postgres has pretty good json support these days and mysql is getting there (managed mysql tends to lag a version).

Re: Homebrew removes MongoDB from core formulas

#9

Would love to see an overview of companies that fell into the mongoDB trap and have / are migrating to another DB store.

Over the last few Months we’ve switched over to amazons document db just to have a managed service. We don’t regret it.

Re: Homebrew removes MongoDB from core formulas

#10

asked this on a sqllite thread before but: anyone know a single file nosqldb that has good python bindings. i know I could just write to json or something but I'd like something that supports queries. right now I'm using MongoDB and it's completely Overkill

Postgres supports querying json
Post reply on HN